Guides

Verify a receipt

Run the four receipt checks (hash, signature, chain link and on-chain anchor) on the public page, through the API, or by hand without trusting Abazi's database.

View as .mdUpdated
Don't trust the log. Check the receipt. Every confirmed payment ends in a receipt that anyone with the link can check, without an account: its hash, its signature, its place in the chain and its anchor on Solana.

What you end up with

A verdict you can show an auditor: four checks, each PASS, and an overall PASS, for a receipt you were given. Or, if something was altered, a FAIL on exactly the check that caught it.

Try the checks

Change one character, break the chain or hold the anchor back, and watch which checks fail.

Receipt verifier

What do the four checks prove, and what makes one fail?

Receipt body (trimmed)

"receipt_id":"rcpt_example"
"type":"payment"
"decision":"ALLOW"
"amount_base_units":"50000"
"asset":"USDC"
"seq":42
"prev_hash":"5a18…c3e2"

Envelope

"hash":"9f2c…41ab"
"signature":"Ed25519 over the hash"
"anchor":"Solana, finalized"
  1. body
  2. canonical JSON
  3. SHA-256
  4. signed · chained · anchored

Checks

  1. 1. HashPASS

    Recomputed hash equals the stated hash 9f2c…41ab.

  2. 2. SignaturePASS

    The Ed25519 signature verifies over the recomputed hash with the published key.

  3. 3. Chain linkPASS

    prev_hash 5a18…c3e2 equals the hash of the previous receipt.

  4. 4. AnchorPASS

    The finalized memo on Solana says uapg:v1:9f2c…41ab.

ResultPASS
Text description

A receipt is a JSON body plus four envelope fields: hash, signature, key id and anchor. The body is serialized as canonical JSON (RFC 8785) and hashed with SHA-256. The hash is signed with Ed25519; the public keys are published. The body carries its sequence number and the previous receipt's hash, so each organization's receipts form a chain. The hash is written to Solana in a memo that reads uapg:v1 followed by the hash.

  1. Hash: recompute SHA-256 over the canonical body and compare it with the stated hash.
  2. Signature: verify the Ed25519 signature over the recomputed hash with the published key. Because it is checked against the recomputed hash, changing the body fails both the hash and the signature.
  3. Chain link: the body's prev_hash must equal the hash of the previous receipt in the chain (64 zeros for the first). Rewriting an earlier receipt breaks the link of the one after it.
  4. Anchor: PENDING until the memo transaction is finalized; then the memo must equal uapg:v1 plus the recomputed hash.

The overall result is FAIL if any check fails, PASS if all four pass, and PENDING otherwise.

Current state: Hash PASS, Signature PASS, Chain link PASS, Anchor PASS. Result PASS.

Steps

Get the receipt id

The agent gets a receipt id with every paid purchase and can fetch the receipt and its public link with get_receipt. Owners and finance find every receipt in the Console.

Open the public check

The public verification page runs the four checks on the receipt and shows the result. It needs no account and works on a phone. The same checks are on the public operation GETVerify receipt publicly/verify/{id}.

Public receipt verification page with four checks
The public receipt check: four checks, no account needed.Captured 2026-11-16
{
  "receipt": {
    "anchor": { "status": "finalized" }
  },
  "checks": { "hash": "PASS", "signature": "PASS", "chain": "PASS", "anchor": "PASS" },
  "result": "PASS"
}
capturedGET /verify/{id} on a confirmed payment receipt, trimmed to the checks and the anchor status· the Abazi API · 2026-11-16· exit 0

Check a copy you hold

If you kept the receipt document, send it to POSTVerify receipt document/v1/receipts/verify as {"receipt": <document>}. The checks run on your copy, not on the stored one, so any change in your copy shows up.

Or check it by hand

You do not need Abazi's word for the first two checks, and the fourth reads a public network:

  1. Remove the envelope fields (hash, signature, kid, anchor) from the receipt document. Serialize the rest as canonical JSON (RFC 8785) and take its SHA-256. It must equal hash.
  2. Fetch the published keys from /.well-known/uapg-receipt-keys.json, pick the key whose id equals kid, and verify the Ed25519 signature over the 32 bytes of the hash you computed.
  3. The body's prev_hash must equal the hash of the organization's previous receipt; the first receipt in a chain has 64 zeros.
  4. Look up the anchor transaction on Solana. Once it is finalized, its memo must read uapg:v1: followed by the hash.

What each check proves

CheckProvesFails when
HashThe body is exactly what was hashed.Any character of the body changed.
SignatureAbazi's receipt key signed this body's hash.The body changed, or the signature or key id is wrong.
Chain linkNo receipt was removed or rewritten before this one.The previous receipt was changed or is missing.
AnchorThe hash was public on Solana at the anchor's time.The memo does not match. It reads PENDING until the memo transaction is finalized.

The overall result is FAIL if any check fails, PASS if all four pass, and PENDING otherwise. A fresh receipt usually reads PENDING for a short while until its anchor is final.

Failure cases

SituationWhat you see
The amount in a copy was editedHash FAIL, signature FAIL, and anchor FAIL once the anchor is final.
An earlier receipt in the chain was rewrittenChain link FAIL on the receipt that follows it.
The anchor is not final yetAnchor PENDING, result PENDING. Check again later.
The receipt id does not existNot found; there is nothing to check.

Next steps

On this page