Record a delivery claim
record_deliveryRecords a buyer-signed delivery claim after an x402 capacity settlement, capturing whether promised GPU-hours, storage, API credits, or bandwidth actually arrived.
Instructions
Record a signed delivery claim after an x402 capacity settlement (gpu-hours, storage, api-credits, or bandwidth). The buyer agent calls this AFTER paying, once it knows whether what was promised actually arrived. The claim's schema and signature (must recover to buyerAddress) are validated before it is written to the append-only ledger. This is a factual receipt, not a reputation score — see get_delivery_history for how other agents read it back. OPTIONAL priorClaimId: set it to the claimId of your (this buyer's) previous claim about the SAME sellerAddress, so your claims about that seller form a chain. It is optional and omitted on your first claim about a seller. Chaining lets a reader later detect a host that hides one of your middle claims; it is signed into the claim so a host cannot strip it. See DECISIONS.md D-006.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| claimId | Yes | Content-addressed id: sha256 of the canonical JSON of this claim's content fields — see computeClaimId() | |
| measured | No | Optional quantitative record of how much was promised and how much was measured. Presence is the version marker; absence is the only encoding of 'not measured' | |
| assetType | Yes | What kind of capacity this claim is about | |
| delivered | Yes | Whether what was promised actually arrived | |
| signature | Yes | Buyer's EIP-191 personal-sign signature over claimId | |
| timestamp | Yes | ISO-8601 timestamp of when this claim was made | |
| buyerAddress | Yes | 0x address of the paying agent — must match the address recovered from `signature` | |
| evidenceHash | Yes | sha256 hex digest of evidence for this claim (logs, response payload, etc.) — the evidence itself is not stored here | |
| externalRefs | No | Optional, unverified pointers into other agent-economy infrastructure (identity, authority, intent, dispute). Tokenizen never resolves or trusts these — they are citations, not verified facts | |
| priorClaimId | No | Optional chain link: the claimId of this buyer's immediately previous claim about the SAME sellerAddress. Omitted on a buyer's first claim about a seller. Lets a reader detect a host that hides a middle claim — see analyzeCompleteness and DECISIONS.md D-006 | |
| promisedSpec | Yes | What the seller promised to deliver — free text or a structured object | |
| sellerAddress | Yes | 0x address of the agent/service that was paid and was supposed to deliver | |
| settlementRef | Yes | x402 payment reference or on-chain tx hash for the settlement this claim is about | |
| offerReceiptHash | No | optional sha256 hex digest (lower-case, no 0x prefix) of the seller-signed x402 offer-receipt this claim answers, taken over the receipt artifact exactly as it was transmitted. The receipt itself is not stored here. Omit it if there is no receipt. |