#1802·x402

Facilitator-side attestation to complement offer-receipt — coordination proposal

Author: javierpmateosCreated Mar 25, 2026Updated Sep 24, 2026

Hi @alftom,

I saw your offer-receipt extension (PR #935) — it fills a real gap in the x402 flow by giving the server a way to sign a verifiable delivery declaration. Great work.

I've been working on a complementary piece: a facilitator-signed attestation that covers the settlement side. The idea is simple — when a facilitator settles a payment, it signs a structured object that includes the txHash, amount, token, payer, payee, facilitator fee, and a reference to the EIP-3009 paymentId.

The two objects solve different problems:

offer-receipt (yours) facilitator-attestation (mine)
Signed by Resource server Facilitator
Proves Server delivered a response Facilitator settled the payment
Includes amount? No (privacy by design) Yes (audit/compliance by design)
Use case Delivery evidence, reputation Spend analytics, tax compliance, audit trail

Together, they'd give agents a complete receipt: proof of payment + proof of delivery, both cryptographically signed by the responsible party.

I also have a third object (BusinessReceipt) that composes the two into a single auditable record, plus an optional on-chain batch anchoring mechanism for Merkle roots of receipt batches.

The full draft is here: https://gist.github.com/javierpmateos/389c28e6cb752ee4999a229ac7ca835f#file-x402-receipt-attestation-v02-md Test results (46/46 pass, 8 attack simulations): https://gist.github.com/javierpmateos/389c28e6cb752ee4999a229ac7ca835f#file-report-md

I'd love to coordinate rather than propose something that overlaps or conflicts. Specifically:

  1. Does the offer-receipt extension mechanism (SettlementResponse.extensions) also work for facilitator-originated data, or should the facilitator attestation live in a different part of the response?
  2. Would it make sense to share the EIP-712 domain (x402-receipt) across both objects for consistency?
  3. Are you planning to extend offer-receipt with payment amount fields, or do you see that as a separate concern?

Let me know what you think. Thanks!

cc @phdargen