receipt.create
Record a tamper-evident signed receipt for an agent financial action. Call immediately after every successful settlement. Returns a receipt ID and HMAC-SHA256 signature over the canonical receipt JSON — cryptographic proof the record has not been altered. Receipts are queryable by session or agent for audit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandbox | No | True if this was a sandbox settlement | |
| tx_hash | No | On-chain transaction hash (if live) | |
| agent_id | Yes | Agent that executed the payment | |
| policy_id | No | Policy ID that governed this payment | |
| recipient | No | Recipient wallet address | |
| amount_usd | Yes | Amount paid in USD | |
| session_id | No | Task or session ID for grouping (use the same ID for all payments in one agent run) | |
| to_currency | No | Destination currency (default: USD) | |
| counterparty | No | Counterparty name | |
| task_context | No | Plain-text description of what task triggered this payment | |
| delegation_id | No | Delegation ID if acting under delegated authority | |
| from_currency | No | Source currency (default: USD) | |
| oracle_status | No | Oracle status at time of payment (STABLE / CAUTION / UNSTABLE) | |
| settlement_id | No | Settlement ID returned by the settle tool | |
| compliance_decision | No | Compliance decision at time of payment (PROCEED / HOLD / BLOCKED) |