{
  "bundle_version": "1.0",
  "status": "example",
  "note": "Example receipt for the walkthrough's $500 customer credit. Estimated retained value is $2,400. The leaf, the chain link, the Merkle path, and the anchor memo match. This root is not the live Solana anchor.",
  "receipt": {
    "receipt_id": "example-500-credit",
    "batch_id": "example-batch",
    "action": "Issued the $500 customer credit",
    "agent": "support-agent",
    "agent_version": "v1",
    "agent_version_id": "support-agent.v1",
    "amount_usd": 500,
    "approver": "Example owner",
    "business_impact_usd": 2400,
    "channel": "phone",
    "currency": "USD",
    "decision": "approved",
    "outcome": "Customer stayed. Ticket not reopened.",
    "owner": "Example owner",
    "prev_hash": "85232846ac58290e8fa4df35ad1d030c1a2fbfbb4bd348da0fa7f138e6f98c31",
    "request": "Issue a $500 customer credit so this person stays",
    "rule": "A customer credit over $100 needs a person",
    "rule_version": "v3",
    "started_at": "2026-10-03T07:35:00.000Z"
  },
  "receipt_hash": "50342c10e4bb0628cc7863c822866ea9f344d094c96bc7114f5c5d19f6802ea4",
  "chain": [
    {
      "receipt_seq": 0,
      "receipt_hash": "85232846ac58290e8fa4df35ad1d030c1a2fbfbb4bd348da0fa7f138e6f98c31",
      "prev_hash": "0000000000000000000000000000000000000000000000000000000000000000"
    },
    {
      "receipt_seq": 1,
      "receipt_hash": "50342c10e4bb0628cc7863c822866ea9f344d094c96bc7114f5c5d19f6802ea4",
      "prev_hash": "85232846ac58290e8fa4df35ad1d030c1a2fbfbb4bd348da0fa7f138e6f98c31"
    }
  ],
  "merkle": {
    "index": 2,
    "siblings": [
      "50342c10e4bb0628cc7863c822866ea9f344d094c96bc7114f5c5d19f6802ea4",
      "4b3bf1abd20e8caaea583fc095191582440fe031bb258bcc33a25e668f19a65b"
    ],
    "root": "9d94451dda6cd6af3880cac7b31ad0087417700e2ec66a8bc892a9f589bb605f"
  },
  "anchor": {
    "chain": "solana",
    "cluster": "mainnet",
    "txid": null,
    "block": null,
    "memo": "9d94451dda6cd6af3880cac7b31ad0087417700e2ec66a8bc892a9f589bb605f",
    "explorer_base": "https://solscan.io/tx/",
    "explorer_url": null
  },
  "algorithm": {
    "leaf": "sha256Hex(JSON.stringify(canonicalize(receipt without receipt_id, batch_id)))",
    "merkle": "sorted-pair fold: hashPair(a,b)=sha256Hex(a<=b?a+b:b+a); odd nodes duplicated; empty tree -> null",
    "spec_ref": "gateway-build/00-foundation-contracts.md §1, §9"
  }
}
