x402 and MPP at a glance
For readers who don’t need the code:
| Question | x402 | MPP (Machine Payments Protocol) |
|---|---|---|
| Who develops it | The x402 Foundation, as an open standard | Tempo and Stripe, as an open standard submitted to the IETF (governance) |
| How it pays | Tokens on blockchains, such as USDC | Stablecoins on Tempo, cards through Stripe, and other methods |
| Who puts the payment through | A facilitator, which also pays the network fee | The service, or the agent itself |
| Can one service accept both? | Yes, with MPP’s tools (mppx), for x402’s basic payments on EVM chains | Same answer |
The rest of this page is for developers: the headers, the flows and what each looks like in a trace.
What do x402 and MPP have in common?
Both turn HTTP 402 Payment Required into a payment flow in three steps:
- Challenge. The server answers the unpaid request with 402 and what it costs.
- Credential. The client pays, or signs a payment, and sends the request again with the proof.
- Receipt. The server checks the payment and answers 200, with a receipt.
Both let an AI agent pay per request, with a stablecoin, and no account with the service. Cards and shop checkouts for agents work differently: see how AI agents pay. To compare them on equal terms, we paid one API five times with each, on local chains, priced at 0.001 of a 6-decimal stablecoin.
How do the headers differ?
From our run, decoded:
| Step | x402 (v2, exact) | MPP (Tempo charge) |
|---|---|---|
| Challenge | PAYMENT-REQUIRED: base64 JSON with scheme, network eip155:84532, amount 1000, payTo |
WWW-Authenticate: Payment with id, realm, method tempo, intent charge, expires, and a request naming amount 1000, currency and recipient |
| Credential | PAYMENT-SIGNATURE: the signed token authorization |
Authorization: Payment with the credential |
| Receipt | PAYMENT-RESPONSE: success, transaction, network, payer |
Payment-Receipt: status success, method, reference (the transaction hash), timestamp |
MPP builds on an HTTP authentication scheme, Payment, written up as an Internet-Draft. x402 defines its own headers in its HTTP transport spec. MPP’s challenge also carries an id, bound to the challenge’s parameters, and here an expiry. The credential answers that one challenge.
Who puts the payment on chain?
This is the biggest difference for an agent, because it decides who needs gas and what you see in a trace.
| Flow | The agent | The transaction is sent by |
|---|---|---|
| x402, exact scheme | signs a token transfer authorization (EIP-3009) | the facilitator, which also pays the gas |
| MPP, pull | signs the transaction | the server, which broadcasts it |
| MPP, push | signs and sends the transaction | the agent itself |
In pull mode the transaction is still the agent’s own, so its fee comes from the agent unless the server sponsors it as fee payer. In push mode, the agent waits for its own transaction before it asks again. In our run, that left the paid request itself at about 4 ms.
What does each look like in a trace?
The shape of the trace tells you who sent the transaction:
- x402 and MPP pull: a
paymentspan and aconfirmspan, and nosendspan. The agent never sent a transaction. - MPP push: a
sendspan, as for any transfer, with thepaymentspan linked to it.
Either way, the confirm span holds the block, the gas and the fee of the transaction that settled the payment.
Is one faster?
Not in a way a local run can show. Median time of the paid request, over five payments each:
| Median | x402 exact | MPP pull | MPP push |
|---|---|---|---|
| Paid request | 76 ms | 18 ms | 4 ms |
| Whole payment, 402 included | 80 ms | 23 ms | 15 ms |
These are local chains that mine at once, so the numbers show the work around the payment, not a network. On a public chain, every flow waits for a block.
How we measured: 5 paid requests per flow on 2026-10-21, local Anvil 1.8.3 (instant mining), @x402/core 2.28.0, mppx 0.13.6, @hashspan/x402 1.3.1, @hashspan/mpp 0.1.2, on one laptop. Medians of 5; not a benchmark of the protocols.
How often the settling client checks for the receipt matters too. In our first run, the x402 facilitator kept viem’s default polling for Base, once every 1,000 ms. Every x402 payment took about 1,050 ms. With polling every 50 ms, as on the MPP side, it took 80 ms.
x402 or MPP: which should I use?
It depends on who you pay, not on speed:
- The service decides. An agent pays in the protocol the API asks for. MPP’s docs show one endpoint serving both.
- x402 takes ERC-20 tokens on chains with a facilitator. With EIP-3009 tokens such as USDC, the agent needs no gas, only the token.
- MPP offers more than one payment method, Tempo stablecoins and cards through Stripe among them, plus sessions for pay-as-you-go (MPP payment methods).
An agent that meets both can trace both the same way.