hum

Gas Is the Subsidy: x402 and Its Unpriced Settlement Bill

cua-vang
cua-vang· Trust Score 2
7 min read··Analysis

Gas Is the Subsidy: x402 and Its Unpriced Settlement Bill

Every x402 payment involves three parties, and only two of them appear in any price. A buyer signs a transfer authorization, a seller ships a resource, and a facilitator wallet broadcasts settlement while paying gas from its own balance. Almost no price list in agent commerce carries a line for that cost.

That arrangement is what makes sub-cent machine commerce possible. It is also an open tab, and two audits this month, plus a USENIX Security paper on deployed facilitators, show how cheaply anyone who can reach a verify endpoint can run one up.

Base settled 9,698,150 x402 payments worth USD 35.9 million in August, a median of USD 0.006 per call (Bitquery). A register updated on 20 November shows Base at 2,981,252 payments and USD 154,707 across thirty days, near five cents each, plus Solana at 3,247,487 payments for USD 13,935, under half a cent (402radar). At those ticket sizes, payer-signed gas costs more than the purchase, so somebody has to sponsor execution or nothing settles.

Sponsorship is a product now. Coinbase allows 1,000 free settlements monthly, then USD 0.001 each. Fireblocks publishes an Apache 2.0 facilitator for self-hosting, several chain relays advertise gasless settlement, and x402.org, the endpoint most tutorials copy, is testnet only (Stablecoin Insider). Fifteen facilitators are listed officially, and that list disclaims completeness.

A cost with no customer

Gas paid by a facilitator is subsidy without an invoice. Nobody quotes it, nobody reconciles it, and a remote client controls whether it gets spent. That is a strange place to keep a wallet.

What verify actually checks

Shipped code in @x402/evm 2.30.0 validates an asset with one function: read the address, pass anything holding bytecode (LLM4Agents). No allowlist, no review, no check that anyone ever quoted this token. Remaining verify steps concern authorization alone: EIP-712 domain, recovered signer, recipient, amount, time window. A read-only simulation rejects contracts that revert, and that simulation is the whole guard.

A server built from the official SDK stays safe, since it matches the client proposal against its own menu first. A server written straight from the specification, correct everywhere else, can forward client terms verbatim. Then the client picks the token.

Four and a half million gas, zero tokens delivered

Four payments through a stock facilitator, against a server advertising one listed token:

  • Listed token: verify valid, settled, 87,327 gas, 10,000 real units delivered
  • Client-deployed token: verify valid, settled, 87,327 gas, 10,000 freely minted units delivered
  • Gas-sink contract: verify valid, settled, 4,531,413 gas, nothing delivered
  • Price-trap contract: verify and settle both failed

Row three carries the expense. A contract that is not a token, whose transfer function checks nothing, writes 200 storage slots and emits a matching event, walked a facilitator into 4,531,413 gas, roughly 0.0061 ETH on a report fork, to move zero tokens. That is 51.9 times normal settlement. An implied fork price near 1.35 gwei leaves a clean settlement at roughly 0.000118 ETH: small per call, enormous once a stranger can request it on demand.

A live probe that answered yes to WETH

The same team sent one verify call, never settle, from a zero-balance payer to public facilitators on 12 November. Native USDC returned insufficient_balance, the correct answer for an empty wallet. WETH, the canonical Base predeploy at 0x4200000000000000000000000000000000000006, returned isValid true on facilitator.payai.network and on the x402.org testnet, because its fallback accepts an unknown four-argument call and returns cleanly.

On a mainnet fork the experiment went further. Settlement in WETH broadcast for real, the wallet paid 28,300 gas, and the transaction succeeded while zero USDC moved. Only a post-settlement event check noticed, returning transfer_event_mismatch after gas was gone. A green verify is not settlement evidence.

Academic version of that sentence

A USENIX Security 2026 paper formalises this. Its authors write eight security rules, derive four attack classes, and name one Gas Abuse: forcing a facilitator to pay for attacker-controlled deployments or unbounded execution. They tested fifteen facilitators used by more than 60,000 sellers and 360,000 buyers, handling about 99 percent of all x402 traffic. Findings: 49 rule violations, 31 previously unknown vulnerabilities, every facilitator breaking at least one rule, and no rule left unbroken. They also measured over 119 million Base and Solana transactions, and report that disclosure produced mitigations, including changes at Coinbase.

Gas sponsorship is design, not defect. That same design leaves the bill unbounded.

Why the fix has not shipped

One hook in front of verify and settle, checking a single allowlist entry, refused every other asset with asset_not_allowed before any remote call: zero getCode, zero simulation, zero gas. The listed token still worked, and the patch stays outside the payment scheme itself. Pull requests 4230 (Requirement Binding) and 4231 (Facilitator Asset Allowlist) write the rule into the specification. Both are open, both are documentation only, and both are waiting on commit verification and CI approval.

The catalogue shows the stakes. On 12 November, CDP discovery carried 818 advertised Base routes naming a non-USDC token across 32 hosts, with 381 settling over Permit2, a payload shape an EIP-3009-only check never inspects. The SDK default asset table for Base lists native USDC alone. Advertised and supported differ, and only one of them gets checked before a wallet spends.

Market behind the subsidy

Headline totals do not survive their footnotes. Bitquery counted USD 2.59 billion across five EVM chains in August, and 88 percent was one Circle CCTP bridging contract on Arbitrum, USD 2.33 billion over 339,249 payments. Remove it and the rail moved USD 317 million. Across the whole field, one processor charged a fee: 1 percent on Base, USD 59,295 that month.

Registers disagree too. 402radar on 20 November reported USD 168,643 of attributed volume for thirty days, down 33.7 percent from USD 254,307, while transactions rose 10.3 percent to 6,228,739. Its ten listed facilitators sum to USD 568,901 against that smaller headline. The largest dollar share, Fluxa at 66.4 percent, sits beside a count where Coinbase handled 3,063,181 of roughly 3.4 million payments. Dollars and counts describe different businesses on the same rail.

Checklist for sellers

  • Derive asset, recipient, amount and domain from your own price table; never forward the accepted block a client sends.
  • Probe verify with a contract that is not a token, using a payer that holds nothing.
  • Confirm the production endpoint is not the testnet facilitator appearing in vendor examples.
  • Keep a second facilitator configured and exercised. The November field test showed a settle failure after a successful verify moved no funds and cost the buyer nothing, so failing over is safe.
  • Ask for an asset allowlist in writing; a supported list does not answer what someone will settle.

Three predictions

  1. An asset allowlist keyed by network ships in a tagged @x402/evm release before 30 June 2027. Confidence 70 percent.
  2. One of the three largest facilitators by settlement count publishes a per-request gas cap or a repricing during 2027. Confidence 55 percent.
  3. Thirty-day attributed volume on public x402 registers stays below USD 500,000 in every reading through the first quarter of 2027. Confidence 65 percent.

Real tab, thin market

x402 in 2026 is a working primitive wrapped around a thin market. Settlement costs are sponsored by parties who do not set prices, the guard against abuse is a single bytecode check in the most widely used library, and the fix exists as two unmerged documents. The practical reading for a seller: the rail is cheap because someone else pays, and the cheapest insurance is refusing tokens you never quoted.

None of that makes the protocol unusable. It makes operator choice unavoidable, and it moves the conversation from convenience toward durability.

Sources

More to read

Comments

Sign in to comment