Reference
Reference

Receipt 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"]):

FieldTypeMeaning
agentAddressThe paying agent
policyBytesN<32>The policy commitment
recipientAddressThe payee
amounti128Amount settled
assetAddressThe asset (SAC)
nullifierBytesN<32>Single-use marker
epoch_idu64Epoch after the action
new_action_countu64Action count after the action
action_idBytesN<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.