#2833·x402

Extension proposal: delivery-receipt attestation (proof-of-delivery for x402 responses)

Author: StelarDigitalCreated Jul 11, 2026Updated Sep 24, 2026

Type: Protocol extension (delivered over the existing v2 EXTENSION-RESPONSES channel) — not a new payment-settlement scheme (it moves no money a new way). Reference implementation: https://github.com/StelarDigital/x402-receipts (Apache-2.0)

Motivation

x402 — and the settlement chain under it — proves that money moved: this tx sent this amount from payer to payee. It proves nothing about whether the seller delivered what was paid for, or what was delivered. In human commerce a chargeback or a review closes that gap; in agent-to-agent commerce there is no human in the loop and no dispute rail.

There is a second-order cost the ecosystem already feels: volume is not trust. Two wallets a single party controls can settle real USDC back and forth and manufacture unlimited "transactions." Facilitator dashboards count them as economic activity; any reputation system built on raw x402 tx counts is trivially wash-traded.

The blockchain is the receipt for the payment. This extension is the receipt for the goods.

Proposal

An optional response extension, delivery-receipt, that a seller MAY emit alongside a settled x402 response, over the existing EXTENSION-RESPONSES channel. It cryptographically binds the on-chain payment to fingerprints of the exact request and the exact response, signed by the payee, optionally countersigned by the payer, and anchored on-chain in batches (so any single receipt can later be proven to have existed at a point in time — without posting every receipt on-chain).

Receipt schema (v0, as implemented)

scheme    x402-receipts/v0
payment   { chain_id, tx_hash, asset, amount, payer, payee }
request   { method, url_hash(sha256), params_hash(sha256), ts }
response  { status, body_sha256, content_type, ts, latency_ms }
seller    { erc8004_agent_id, sig (EIP-712) }
buyer     { countersig (EIP-712) | null }
anchor    { batch_merkle_root, base_tx, leaf_index } | null
  • Raw request/response bodies are never stored — only sha256 fingerprints, so a receipt leaks no payload and stays tiny.
  • Verification is three independent checks: (1) signatures/schema — fails closed when payer == payee; (2) on-chain settlement — the referenced tx really confirmed, moving exactly amount of a recognized asset from payer to payee on the claimed chain (verified against the node's own getChainId()), which is what defeats the "signed a receipt over a tx that never happened / a token I minted myself" sybil; (3) RFC-6962 merkle inclusion.
  • Anchoring uses EAS on Base (OP-stack predeploy 0x4200000000000000000000000000000000000021, identical on 8453 and 84532) — no bespoke contract to deploy or audit. Each anchor's refUID chains to the prior one, so an agent's full delivery history is walkable through EAS alone.

Why it complements, not competes

  • vs. settlement schemes (exact, etc.): those define how money moves; this defines what was delivered for it. It touches no settlement path, needs no facilitator change, and is fail-open (never blocks a response).
  • vs. ERC-8004 (agent identity/reputation): receipts don't self-attest reputation — they are counterparty-signed evidence a reputation registry can point at instead of raw counts. The receipt carries an erc8004_agent_id.
  • vs. ERC-8183 (agentic-commerce escrow): the receipt digest is exactly what the evaluator's attestationHash should commit to — the standardized "what was delivered" that thread flags as unspecified.

Requested feedback

  1. Preferred header name(s) under the v2 EXTENSION-RESPONSES convention.
  2. Whether the Foundation should publish a canonical EAS schema (shared schemaUID) vs. per-deployer.
  3. Interest in co-specifying an ERC-8183 attestationHash = receiptDigest binding.

Full reference implementation (EIP-712 sign/verify, settlement-grounded verification, distinct-payer-weighted reputation scoring, RFC-6962 merkle batching, EAS-on-Base anchoring, fail-open middleware): https://github.com/StelarDigital/x402-receipts