x402 transaction-proof: one hash, one request, measured on Base
x402's new transaction-proof method lets an agent pay with any ERC-20 or native ETH by broadcasting the transfer itself and handing over the hash. We rebuilt its /settle on a Base fork. Signature binding holds. The edge cases are the consumption key, the shared store and the clock.
On 2026-12-01 at 09:39 UTC, Philippe d'Argent opened PR #4545. It adds transaction-proof, a new asset transfer method for the exact scheme: four spec files, +521/−91, a new 315-line network-agnostic document and an EVM binding. Eight commits, the first dated 2026-11-11, one of them by Alfred Tom. It supersedes #1004, a TXID payload draft Alfred Tom opened on 2026-01-21. That draft predates the paymentFlow and method-family model, and it is still open.
Every exact method x402 defines on EVM today has the same shape. The buyer signs something, and the facilitator submits the transaction and pays the gas. transaction-proof turns that around. The buyer broadcasts an ordinary transfer and presents the transaction hash. The facilitator submits nothing. It reads the chain and records the hash as spent.
The PR is spec-only. On main at 60d7693 (2026-12-01 20:27 UTC), no TypeScript, Go or Python code implements it. The only grep hits are Algorand's unrelated transactionProof client method inside the bundled paywall templates. So we wrote the facilitator side ourselves, about sixty lines against the text at head 179446d, and ran it against the real USDC contract on a Base fork.
What the method actually specifies
The method belongs to the client-submitted (payment proof) family that #3145 added to scheme_exact.md in September. It must use paymentFlow: "upfront", which #3240 introduced in August. The resource server calls /settle directly and must not call /verify. The request executes only after settle succeeds.
The core problem is stated plainly: "A transaction identifier is public once broadcast. On its own it proves neither that the presenter paid nor what the payment was for." So every requirement carries one of three binding modes, picked by the resource server from the facilitator's advertised kinds[].extra.bindingModes. The client never picks.
// signature (default) payer signs UTF8(JCS(binding)) after broadcasting
binding = { domain, network, asset, amount, payTo, requestHash, transactionId, payer }
key = network + ":" + transactionId
// commitment SHA-256(JCS(binding) || secret) embedded in the transfer
key = network + ":" + transactionId // not defined on EVM
// instrument single-use payTo + off-chain credential from the challenge
key = network + ":" + payTo [ + ":" + depositMemo ]
The EVM binding supports signature and instrument. The signature is EIP-191 personal_sign, verified by ecrecover or by ERC-1271 isValidSignature. That covers EOAs, EIP-7702 accounts, Safes and ERC-4337 accounts. ERC-6492 is not needed, because an account that already sent a transfer is already deployed.
commitment is left undefined on EVM. The text says calldata suffixes "break native ETH transfers to contracts without fallback(), strict ERC-20 contracts, and ERC-4337 smart accounts". That is true as a general rule. It is not true of USDC, the default x402 asset on Base. On our fork, a USDC transfer with 32 extra bytes appended succeeded at 45,349 gas against 44,831 without them, +518 gas. Our builder-code census of 2026-11-30 already found most Base EIP-3009 settlements carrying calldata suffixes. A USDC-only commitment profile is possible later. It is not in this PR.
Two more properties matter for everything below. The payer pays first, and the spec defines no return path: "Clients SHOULD prefer an authorization method when a resource offers one." And a proof is presentable only while now <= blockTime + maxTimeoutSeconds + skew, with skew defaulting to 60 seconds.
The test vector reproduces, byte for byte
The EVM section ships a full vector. It covers a GET to https://api.example.com/premium-data with no body, signed with the test-only private key 0x…01. We rebuilt it with viem 2.58.8 and a three-line JCS for objects of strings.
requestHash (http:1) 0728d95cc572f287…d98488fa1 // matches
other-data URL digest f2ddfb087d8bbc95…a5b0ed9e // matches
binding bytes 409 B of JCS
EIP-191 message hash 0x105958a42bd6ede8…22ca6293d // matches
signature identical, 65 B // RFC 6979 is deterministic
ecrecover 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf
same sig, other-data 0x99D27B7fd735987D24F4FdB1C6B0569d2EEE590E // wrong signer
All five published values match. The last line is the request binding doing its job. A signature made for one URL recovers a stranger's address when the facilitator rebuilds the binding with another URL's hash.
The example payment payload is 877 bytes of JSON. Base64-encoded for the PAYMENT-SIGNATURE header, it is 1,172 bytes, far below Node's default 16 KiB header limit.
A facilitator on a Base fork
The harness is anvil 1.5.1 forking Base at block 65,059,198, around 09:03 UTC on 2026-12-02. It uses the real FiatToken USDC contract (version() returns "2"), Multicall3 at its canonical address, and freshly generated keys. We avoided well-known test keys. The address of key 0x…01 already carries an EIP-7702 delegation on Base.
Our /settle runs the five steps in the spec's order. First the structure checks. Then the pre-RPC signature check over a binding built from the server's own paymentRequirements. Then the transfer is found in the receipt logs, with from equal to payer, plus the proof-age check. Then a depth-based finality check. Last comes the atomic claim of eip155:8453:<txHash>. The store is an in-memory set. The spec calls that non-compliant because it does not survive a restart, which is fine for a single-process harness. Error codes below drop the invalid_exact_transaction_proof_ prefix.
// S1 payer A sends 10,000 USDC units to payTo, request bound to /premium-data
observer O presents, payer = O, O's signature transfer_mismatch
observer O presents, payer = A, O's signature signature
A's signature over /other-data, presented here signature
A's correct payload success
same payload again duplicate_settlement
This is the part that works. A transaction hash is public in the mempool and on every explorer. In signature mode it is useless without the payer's key. The observer cannot claim it as its own because the log's from is not the observer. It cannot claim it as the payer because it cannot sign as the payer. And the payer cannot move a proof from one request to another once the server binds the request.
The security section still flags the bearer property honestly. Until it is consumed, a complete payload works in anyone's hands for its bound request. A proxy that logs PAYMENT-SIGNATURE headers holds spendable proofs for the length of the window.
The store is the only thing between two methods
Signature mode accepts any matching transfer from the payer to payTo. An EIP-3009 settlement is exactly that. transferWithAuthorization emits Transfer(from = payer, to = payTo), whoever submitted it.
// S2 relayer R submits A's EIP-3009 authorization to payTo
A presents that tx hash under transaction-proof success
same, facilitator inserted the key at submission duplicate_settlement
The first line is a payer buying twice with one transfer: once through the EIP-3009 route that produced the transaction, and again by presenting its hash. The spec closes this with two rules. A resource server in signature mode "MUST use a payTo that receives asset only through this method". Otherwise its facilitator must insert the consumption key of every transaction it submits to that payTo by another method, at submission time.
The second rule only works when one party controls both paths. A seller that settles EIP-3009 through a hosted facilitator and adds transaction-proof through its own verifier has two stores and no insertion hook. For that seller, the dedicated payTo is the whole defense.
Alfred Tom's review caught a related inconsistency. scheme_exact.md says a bound proof "needs no store beyond its own". The new method's text says all facilitator instances settling for the same payTo must share one store. The second is the correct one. Nothing in steps 1 to 4 depends on which facilitator runs them, so two stores accept one payload twice.
One transaction, one request
The consumption key is network:transactionId. The text adds: "A transaction pays for at most one request, even if it contains several matching transfers." Douglas Borthwick asked on the PR whether that is meant to cover transfers from different payers. One ERC-4337 handleOps transaction can carry operations from unrelated accounts. He also asked about one store serving several payTo addresses, since the key does not include payTo. We ran both cases.
// S3 R batches A's and B's EIP-3009 auths to the same payTo via Multicall3
A presents (own transfer, own signature) success
B presents (own transfer, own signature) duplicate_settlement
// S4 one tx: A pays merchant P and merchant P2
P (store shared with P2) success
P2 (store shared with P) duplicate_settlement
P2 (own store) success
In S3, B's 10,000 units are at payTo. B holds a valid signature over a real transfer. The response is terminal, because the spec says duplicate_settlement "is terminal for that transaction". In S4, the same payment is accepted or refused depending on how the merchant's facilitator lays out its storage. A buyer cannot see that layout.
How often does a bundle mix payers? We counted on Base mainnet over two hours, 07:06:49 to 09:06:48 UTC on 2026-12-02, which is 36,000 blocks. We pulled every UserOperationEvent from the four EntryPoint versions deployed there (v0.6, v0.7, v0.8, v0.9) and every USDC Transfer in the same range. Then we joined them by transaction hash.
user operations 27,922
bundle transactions 25,259
with ops from >= 2 distinct senders 984 (3.9%)
with USDC leaving at least one op sender 9,425
with USDC leaving >= 2 distinct op senders 182 (1.9% of 9,425)
with >= 2 op senders paying the same recipient 26 (0.28%)
payments in those 26 54 (19 under one cent)
Not every one of these transfers is a payment. Many are legs of swaps. But each row is a transaction where two accounts' USDC left under one hash. Under a facilitator store shared across merchants, the second presenter in each of the 182 would be refused. Under a store per payTo, the 26 still would.
One recipient in the 26 is worth a sentence. Its code is an EIP-7702 delegation designator, 23 bytes. It appears in 9 of them, and each time two or three accounts paid it between $0.0049 and $0.0055 inside the same bundle. Half-cent transfers from several accounts to one address, in one bundle, is the shape per-call payments take when they share a bundler.
The fix Douglas sketches, adding payer to the key, is not a one-line change. The other-methods rule inserts the key of a whole submitted transaction, so it would need restating. Until the PR settles this, the safe client rule is simple. Agent wallets that pay through a shared bundler should not use transaction-proof in signature mode, and payers should never batch two x402 payments into one transaction.
The window has to outlast finality
Step 3 checks the proof age and step 4 checks finality. A transaction that is included but not yet final gets settlement_pending, and nothing is recorded. The client "SHOULD retry with the same payload until the transaction is final or the proof age bound passes." If the window closes first, the result is expired. The money stays at payTo, and the spec defines no way back.
// S5 depth policy 5 blocks, maxTimeoutSeconds 300, skew 60
presented at once settlement_pending
presented after 361 s (depth now reached) expired
So the real question is how long the facilitator's finality policy takes on each network. The EVM binding leaves the policy to the facilitator: a confirmation depth, or the safe or finalized block tag. It says resource servers "SHOULD set maxTimeoutSeconds well above" that time. It does not give a number per chain. Its own example uses eip155:8453 with maxTimeoutSeconds: 300.
We sampled Base 20 times, 30 seconds apart, between 09:03 and 09:13 UTC.
// Base mainnet, head minus tag, 20 samples
safe median 35 s (17 to 63 s) median 174 blocks
finalized median 1,004 s (821 to 1,155 s) median 5,018 blocks
// Polygon PoS, head minus finalized, 8 samples, 09:15 to 09:16 UTC
finalized median 4.5 s (3 to 6 s) 2 to 4 blocks
On Base, a facilitator that waits for finalized needs about 14 to 19 minutes. The example window is 360 seconds including skew. Every proof presented under that pairing returns settlement_pending until it returns expired. Neither choice is wrong on its own, but together they lose every payment. With safe, which trailed the head by 35 seconds at the median, the same 300 seconds is comfortable. On Polygon even finalized fits with room to spare.
The trade-off between preconfirmation and finality is the same one we measured for facilitator-submitted settlement in the finality audit. The difference is who carries the risk. Under EIP-3009, a slow settle costs the seller latency. Under transaction-proof, a window shorter than the policy costs the buyer the payment.
Native ETH through a smart account
A top-level ETH transfer is easy to check: tx.to, tx.value, tx.from. On the fork, one from a fresh EOA settled at once (S6). A Safe or ERC-4337 account moves ETH through an internal call, which leaves no log. So the binding adds extra.internalNativeTransfers. When it is set, the facilitator traces the transaction and needs a CALL frame to payTo, "such that neither that frame nor any ancestor call frame reverted".
We deployed a minimal ERC-1271 account whose owner signs the binding. It has two ways to pay. One forwards ETH directly. The other forwards it inside a call that then reverts, wrapped in try/catch. The outer transaction succeeds with status 1, and the transfer is undone.
// S7 10,000 wei to payTo via the account, callTracer on the fork
undone payment, check only the matching frame success payTo +0
undone payment, ancestor rule (as specified) transfer_mismatch payTo +0
direct payment, ancestor rule success payTo +10,000
direct payment, internalNativeTransfers false transfer_mismatch payTo +10,000
The first line is why the ancestor clause exists. The frame that pays payTo carries no error. Its parent does. A verifier that inspects only the matching frame delivers the resource for a payment that never landed.
The last line is the opposite failure. An honest smart-account payment sent to a facilitator without tracing is rejected after the ETH has arrived. The spec puts that duty on the client. An account that moves ETH via an internal call "MUST NOT select a native ETH transaction-proof entry unless extra.internalNativeTransfers is true." An agent framework that treats every account as an EOA will break this rule without noticing.
One harness note for anyone reproducing this. With an estimated gas limit, the inner call runs out of gas, the catch swallows it, and the transfer never happens at all. We had to set the gas limit explicitly to get the revert case.
Who pays, and in what
The method moves the network fee from facilitator to buyer. On the fork, a plain USDC transfer used 62,147 gas to an empty payTo and 45,047 to one that already held USDC. A relayed transferWithAuthorization used about 85,700. A top-level ETH transfer is 21,000.
On mainnet, we sampled 30 direct USDC transfers and 30 EIP-3009 settlements from the latest ~120 Base blocks at about 09:10 UTC. Median gas was 45,517 and 86,466. Median total fee, L2 execution plus the L1 data fee from the receipt, was 4.52 × 10⁻⁷ ETH and 8.66 × 10⁻⁷ ETH. At the Chainlink ETH/USD feed on Base ($1,676.50, round updated 08:53 UTC), that is about $0.00076 for the buyer's transfer, against $0.00145 that an EIP-3009 facilitator pays today.
The total cost drops by roughly half, and it lands on a different party. Three consequences follow for agents.
First, the agent needs native gas on every network it pays on, unless a paymaster sponsors it. EIP-3009 never asked for that. At a $0.001 call price, the buyer's own gas is three quarters of the price again.
Second, a payment is two signatures. One signs the transaction, and one signs the binding after the hash exists. The binding is EIP-191 text, not EIP-712 typed data. Policy rules written against EIP-712 fields, the kind we tested when we wired Privy and Turnkey to x402, have no fields to match here. Alfred Tom's review proposes letting a separate key, authorized by the paying key, sign the binding, with the Identity WG defining the authorization. That would help agent key hygiene, and it is not in the text yet.
Third, the facilitator holds no funds and pays no gas. Its cost is RPC reads, a signature check and one durable insert. That makes it cheap to run your own. It also means "facilitator" here means a verifier plus a database, and the database is the part that has to be right.
Request binding hashes bytes, not JSON
The http:1 profile binds the method, the URL, the SHA-256 of the body bytes and any headers the server lists. The mcp:1 profile binds the MCP server URI, the tool name and the raw arguments of a tools/call, plus any _meta names the server lists. The JSON-RPC id is not bound. Both profiles let a server sell different operations at the same price without a leaked proof buying the more valuable one.
The body hash is over bytes. We serialized the same chat-completion object twice. Python's json.dumps produced 120 bytes and hash 36afb852…. JavaScript's JSON.stringify produced 112 bytes and hash 9417256a…. A client that re-serializes between the 402 and the paid retry presents a proof bound to bytes it did not send, and settle returns request_mismatch.
Nothing is consumed on that path, so resending the original bytes inside the window still works. But the payment has already left the wallet. The spec's guard is on the client side: it "MUST check extra.requestHash against the request it intends to make… before it broadcasts". Clients that build the body lazily will need to change. This is the same purchase-identity question we raised in the idempotency audit. Here the protocol answers it with a hash.
What it means for LLM4Agents
Our x402 path today is EIP-3009 exact: the agent signs, the facilitator submits, and the agent needs only stablecoins. transaction-proof would widen what an agent can pay with to any ERC-20 or native gas token. It also adds three obligations we would own directly.
The store becomes our ledger of record. S2 shows that a signature-mode verifier on a payTo that also receives EIP-3009 settlements sells every settlement twice, unless each settlement hash is in the same store before the hash is presented. We do not control insertion inside a hosted facilitator. So transaction-proof on our side means a dedicated payTo per method, not a flag on the existing route.
Finality policy and window are one decision. Polygon's finalized tag trailed the head by 3 to 6 seconds in our sample, so a strict policy costs nothing there. On Base, finalized ran about 17 minutes behind, and the window has to be set from the policy, not copied from an example. A mismatch there does not show up as an error rate. It shows up as payments that arrived and were never honored.
Upfront means we owe the remedy. Under the authorization flow, the spec leaves a failed handler uncharged. Under upfront, the agent has paid before the provider answers. The spec says any refund "is a separate arrangement with the resource server". We already keep a per-agent balance, and signature mode authenticates the payer cryptographically. A credit to that payer for failed handlers and for overpayment is a remedy we can actually offer. A bare 402-only seller cannot.
The method also fits our MCP surface well. Our tools for scraping, search and image generation sell different operations behind one payment surface. mcp:1 lets a paid tools/call be bound to its exact arguments, so a payload that leaks from a log buys only the call the agent already made.
Staying on the frontier
Five steps, cheapest and most protective first.
1. Reserve a dedicated payTo per transfer method now. It costs one address, and it removes S2 regardless of which facilitator settles EIP-3009. It is also the only step that has to happen before any verifier code exists.
2. Build the verifier around a durable unique insert, and log more than the key. Use a database unique constraint on eip155:<chainId>:<txHash>, written as the last step, exactly as the spec orders it. Next to it, store payer, payTo, asset, amount and log index. If the PR moves to a per-payer key, which is the open question, that becomes a migration instead of a rewrite. Until then, our agent-side guidance should be plain: never batch two x402 payments into one transaction.
3. Publish a per-network finality and window table, and test it. A starting point from today's numbers: Polygon finalized with a 300-second window, and Base safe with at least 300 seconds. Allow Base finalized only with a window of 30 minutes or more. Add the S5 case to CI, where a proof presented after the window must fail, so a policy change cannot silently outrun the window.
4. Bind every paid request, and hash raw bytes. Compute bodyHash from the bytes received, before JSON parsing, and use mcp:1 for every paid tool call. Show the client side in our integration examples too: hash once, send exactly those bytes, and check extra.requestHash before broadcasting.
5. Track the PR, then re-run the vector and the harness on the merged text. The open threads are the key's scope across payers and payTo, delegated binding keys via the Identity WG, and the store-sharing wording. Two neighbouring drafts move with it. The PR calls itself the prerequisite for #3370 (near-intents), and #4382 (memo-transfer on bb84) is the case the PR cites for commitment mode. The seven scenarios here are short scripts against a fork. When an SDK implementation lands, run them against it before we trust it with a payment that has no way back. The smart-sessions audit showed ERC-1271 accounts rejecting signatures a plain x402 client produces, and the ERC-1271 path here deserves the same check.
Pay per call, with a quote you can verify
LLM4Agents gives agents one OpenAI-compatible endpoint for 345+ models and MCP tools, paid per use in stablecoins over x402.
Register your agent