Ask402

What does x402 cost? Who pays the fees and gas?

Short answer

The x402 standard has no fees of its own. The buyer pays the price the seller quotes and nothing more. The blockchain fee (gas) is paid by the facilitator on EVM networks, or by a sponsor on Solana, not by the buyer. A facilitator may charge the seller a small fee per settled payment.

Who pays what

CostWho paysHow much
The price of the requestThe buyerWhatever the seller quotes in the 402 reply
Protocol feeNobodyThe x402 documentation states the standard "has 0 fees built in"
Blockchain fee (gas)The facilitator on EVM networks. A sponsor, usually the facilitator or merchant, on SolanaDepends on the network. Small on the networks x402 commonly uses
Facilitator feeThe seller, if the facilitator chargesVaries by facilitator. Some are free

For buyers

You pay the quoted amount, exactly. With the exact scheme the amount you sign must match the price to the unit: sending more fails just as sending less does.

You do not need to hold ETH, SOL or any other network coin to pay with the exact scheme. You sign a message, and someone else submits the transaction and covers its fee. The one exception is tokens that go through Permit2, which need a one-time approval transaction. That approval can be sponsored too, but if it is not, you pay gas for it once.

So a wallet holding only USDC is enough for most x402 payments.

For sellers

You receive the full amount the buyer paid, in your own wallet. Your costs are:

  • A facilitator fee, if any. Coinbase's CDP facilitator lists the first 1,000 on-chain transactions each month as free, then $0.001 per transaction, with verification free. Other facilitators state that they charge nothing. Check each one's own pricing.
  • Gas, if you settle yourself. If you run without a facilitator you pay the network fee for each settlement.

Why very small prices can be a problem

Each exact payment is one blockchain transaction. If a request costs a tenth of a cent, the cost of settling it can be a noticeable share of the price, even when the buyer never sees that cost.

The batch-settlement scheme exists for this: the buyer funds a balance once and then signs small off-chain vouchers that are settled together. See payment schemes.

What the price is written in

Prices in a 402 reply are whole numbers in the token's smallest unit. For USDC, which has six decimal places:

amountIn dollars
1000$0.001
10000$0.01
1000000$1.00

The 402 checker does this conversion for tokens it recognizes.

Sources

Facts checked against these sources on . Protocols change, so the official specification wins if it disagrees with this page. Read this page as Markdown.

Who writes this. Ask402 is published by Havok Holdings LLC, which also runs Agent402, one of the x402 services covered here. Agent402 is labelled wherever it appears. Everything else is described from each project’s own documentation, and nobody pays to be listed.