x402 facilitators, and when you can skip one
Updated 23 November 2026 · 13 sections
A facilitator is the piece of x402 most people meet before they understand the protocol: a hosted service that checks a payment authorisation and settles it on-chain, so your server does not have to. It is optional. The spec describes the exchange between client and server; it does not require a third party in the middle. Whether you want one is a question about who pays gas, who you are willing to depend on, and whether you would rather run your own receipt checks.
The three jobs a facilitator does
- Verify. It checks that the client’s signed authorisation is well-formed, that the amount and recipient match, and that the signature recovers to the payer’s address.
- Sponsor gas. In the gasless version of the flow the buyer signs an EIP-3009 authorisation instead of sending a transfer, and the facilitator submits it and pays the network fee — this is why a wallet holding only USDC can still pay.
- Settle. It broadcasts the transfer, tracks confirmation, and reports the transaction hash back to your server so the sale can be recorded against a real receipt.
Hosted options exist for every taste. The x402 project runs a public facilitator at https://x402.org/facilitator, aimed at quickstart and testnets, which needs no account and publishes what it supports at /supported. Commercial ones (Launa, Blocky402 and others) expose the same GET /supported, POST /verify, POST /settle surface, usually with a dedicated URL per customer and a dashboard behind it. Coinbase has run one for its own ecosystem since the protocol launched.
What verifying a payment yourself takes
Less than you would guess, if you already accept USDC. The buyer sends an ordinary ERC-20 transfer and hands you the transaction hash. You then need an RPC endpoint and five checks: the transaction succeeded, it contains a Transfer log from the USDC contract, the recipient topic is your payout address, the summed value is at least the quoted amount, and the block is buried deep enough that a reorg cannot pull it back. Here everything waits for three confirmations, which on Base is a few seconds.
// the checks that decide whether goods move, in the order they matter
receipt = eth_getTransactionReceipt(hash)
receipt.status === 0x1 // it did not revert
logs = receipt.logs.filter(l =>
l.address === USDC && l.topics[0] === TRANSFER && l.topics[2] === toTopic)
sum(logs.data) >= amountMicro // underpay is refused, overpay is accepted
txHash ∉ alreadyUsedForAnotherOrder // replay guard, not per-buyer
head - receipt.blockNumber + 1 >= 3 // final enough to deliver againstThe parts people get wrong are the last two. A transaction hash has to be unique across the whole marketplace, not just per order, or one transfer can be presented to two shops. And “enough confirmations” has to be a number you chose deliberately, because zero confirmations means you will occasionally deliver against a transfer that then vanishes.
This is the model on x402.website: no facilitator and no signed-authorisation scheme. The 402 carries the terms in the PAYMENT-REQUIRED header in the v2 wire format, labelled assetTransferMethod: onchain-transfer; the buyer pays the shop directly on Base and presents the hash, and the server reads the receipt before releasing anything. The seller’s address receives the full amount — the 1% fee is recorded on the order, not deducted from the transfer. The trade-off is honest: the buyer needs a little ETH for gas, and the marketplace needs an RPC endpoint it trusts.
When the extra party earns its fee
- Your buyers hold stablecoins and nothing else. Sponsoring gas is the entire value proposition, and it is hard to replicate without running a relayer with a funded hot wallet.
- You support several chains. One integration that advertises
base,polygon,solanaand testnets beats four verifiers you maintain yourself. - You do not want to own reorg logic. Someone else absorbing that edge case is worth a basis-point fee when your volume is small.
- You are on testnet. The public facilitator is free, needs no key, and is the fastest way to see the flow work end to end.
And when it does not: adding a party means adding a dependency that can be down, a fee that scales with volume, and a service that learns every payment your shop receives. For a shop selling a $0.02 call, a facilitator fee can be a meaningful fraction of the ticket, while the direct model costs a fraction of a cent in gas paid by the buyer. Both designs are legitimate; only one of them is free.
If you would rather not run any of this yourself, open a shop, set a Base payout address and publish a listing — the verification, expiry and replay checks are already implemented. The wire format differences are covered in HTTP 402 and x402, in plain terms.