Reference
ReferenceReceipt schema
The ActionReceipt event fields and the off-chain receipt JSON.
A settled action emits an ActionReceipt event. Reconstruct a portable receipt
from its fields off-chain.
Event fields
ActionReceipt (topics ["receipt"]):
| Field | Type | Meaning |
|---|---|---|
agent | Address | The paying agent |
policy | BytesN<32> | The policy commitment |
recipient | Address | The payee |
amount | i128 | Amount settled |
asset | Address | The asset (SAC) |
nullifier | BytesN<32> | Single-use marker |
epoch_id | u64 | Epoch after the action |
new_action_count | u64 | Action count after the action |
action_id | BytesN<32> | Canonical receipt id (Poseidon) |
Off-chain receipt JSON
{
"agent": "G…",
"policy": "0x…",
"recipient": "G…",
"amount": "50000000",
"asset": "native",
"nullifier": "0x…",
"epochId": 20231,
"newActionCount": 7,
"actionId": "0x…",
"txHash": "…"
}action_id is computed on-chain with the CAP-0075 host Poseidon over
agent, recipient, amount, nullifier, new_spent — so the receipt id is verifiable
rather than asserted.