Receipts and proof
How an Abazi receipt is built, signed, chained and anchored on Solana, and the four checks anyone can run on one without an account.
Who needs it
Owners and finance, who want proof that does not depend on Abazi's word. Auditors and counterparties, who were sent a receipt link. Merchants, whose disputes start from a receipt.
What a receipt contains
A receipt is issued for each payment, refund, installment, sweep and revocation. Its body has fixed fields:
| Group | Fields |
|---|---|
| Who | Organization, agent, mandate and its version, approval and approver when there was one |
| Decision | ALLOW and the reason code |
| Whom | Merchant name and its trust tier at the time |
| What | Amount, asset, network, rail, payout address, settlement reference, delivery status |
| Order | Issue time, sequence number and the previous receipt's hash |
The agent's stated purpose is not in the receipt.
How it is built
/.well-known/uapg-receipt-keys.json.uapg:v1: followed by the hash to Solana. The anchor is pending until that transaction is finalized.The four checks
Receipt verifier
What do the four checks prove, and what makes one fail?
Receipt body (trimmed)
Envelope
- body
- canonical JSON
- SHA-256
- signed · chained · anchored
Checks
- 1. HashPASS
Recomputed hash equals the stated hash 9f2c…41ab.
- 2. SignaturePASS
The Ed25519 signature verifies over the recomputed hash with the published key.
- 3. Chain linkPASS
prev_hash 5a18…c3e2 equals the hash of the previous receipt.
- 4. AnchorPASS
The finalized memo on Solana says uapg:v1:9f2c…41ab.
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.
- Hash: recompute SHA-256 over the canonical body and compare it with the stated hash.
- 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.
- 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.
- 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.
| Check | Passes when | Catches |
|---|---|---|
| Hash | The SHA-256 of the canonical body equals the stated hash. | Any change to any field. |
| Signature | The Ed25519 signature over that recomputed hash verifies with the published key. | A body changed and re-hashed by someone without Abazi's key. |
| Chain link | The previous-hash field equals the hash of the receipt before it in the sequence (64 zeros for the first). | A receipt removed or inserted in the middle. |
| On-chain anchor | A finalized Solana memo transaction contains this hash. PENDING until finalized. | A receipt rewritten after it was anchored. |
All four PASS gives PASS. Any FAIL gives FAIL. Otherwise, while the anchor is not final, the result is PENDING.

Boundary
- Append-only. A receipt is never edited. A correction is a new receipt, for example a refund receipt linked to the original. The anchor status is kept apart from the receipt for that reason.
- Public by link. Anyone with a receipt's id can open its public check, GETVerify receipt publicly
/verify/{id}. Ids are unguessable. The public view shows the receipt, its settlement and the paying organization's name, and nothing else from the organization's account. - An anchor is a timestamp, not a payment. A pending or failed anchor does not affect the payment it describes.
- What a PASS proves. That this exact body was signed by Abazi's receipt key, sits in the organization's sequence and was anchored on Solana. It does not prove the merchant delivered what was promised; delivery status is a field, and disputes cover the rest.
Example
The published receipt key, from GETList receipt signing keys/.well-known/uapg-receipt-keys.json:
{"keys":[{"kid":"rk_2026_11","kty":"OKP","crv":"Ed25519","x":"wJip5rVmdSNAfa3tYwbrkVP-CrFQDjSUE2ZFTKDJwuo","status":"active"}]}The public check of a receipt for an x402 payment on Solana, from GETVerify receipt publicly/verify/{id}. Trimmed: hashes, signature, addresses, transaction references, links, the merchant name and the organization name are removed.
{
"result": "PASS",
"checks": { "hash": "PASS", "signature": "PASS", "chain": "PASS", "anchor": "PASS" },
"receipt": {
"receipt_id": "rcpt_01m7gybm28hgtyebv1g9n36dzy",
"type": "payment",
"decision": "ALLOW",
"reason_code": "WITHIN_POLICY",
"merchant_tier": "VERIFIED",
"amount_base_units": "50000",
"asset": "USDC",
"network": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1",
"rail": "x402",
"delivery_status": "delivered",
"seq": 1,
"prev_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"kid": "rk_2026_11",
"anchor": { "status": "finalized" }
}
}The amount is in base units with six decimals: 50000 is 0.05 USDC. This is the organization's first receipt, so its previous hash is 64 zeros.
Failure cases
| Case | Result |
|---|---|
| One character of the body changed | Hash, Signature and Anchor FAIL, because the signature and the on-chain memo are checked against the hash recomputed from the body. Chain link still passes. The result is FAIL. |
| A receipt removed from the middle of the sequence | Chain link FAIL on the receipt after it. |
| The memo transaction is not finalized yet | Anchor PENDING. The result is PENDING. |
| An unknown id | Not found. |
How to verify
- In a browser: the public check page shows the receipt in readable form, the four checks, a JSON download and a link to the anchor on a Solana explorer.
- On your own: download the JSON, serialize the body with RFC 8785, hash it, verify the signature with the published key, compare the previous hash, and look up the memo. The verify a receipt guide walks through each step.
Next steps
Rails and networks
Why one mandate spans stablecoins and cards, how networks are named, and how Abazi picks one network for each payment from the mandate's order, funds and facilitator health.
Installments and subscriptions
How a plan is approved once for its full terms, paid by scheduled pulls that a Solana program caps per period, and cancelled in one action.