x402 is an open protocol that lets software pay for a single HTTP request in stablecoins. The server answers 402 Payment Required with a price, the client signs a payment, and the same request completes. MPP, the Machine Payments Protocol, is a second protocol for that same handshake, carried in standard HTTP authentication headers.
No subscription, no checkout page, no account. That matters because an AI agent cannot open one: paying per call is the only purchase an autonomous program can actually make on its own. Both protocols are the wire underneath Agentic Finance, agents that pay and get paid on their own; every term on this page is defined in the glossary. New to all of it? Start with the ten-minute 101.
HTTP/1.1 reserved 402 Payment Required in 1997 for future use, and almost no server sent it for roughly thirty years: card payments need a redirect, a session and a human, none of which fit in one HTTP response. A signed stablecoin authorization fits in a header and settles inside a single round trip, so x402 finally gives the status code a payment system.
02 / THE HANDSHAKE
How a paid request actually works.
Four steps, two requests from the caller's point of view: the quote and the paid retry. Nothing here requires a browser, a human, or an account.
01
The agent asks for something
A plain HTTP request, with no credentials attached. There is no account to authenticate against, so nothing to send.
02
The server answers 402 with a price
The response names the amount, the asset, the chain, and where to pay. This is machine-readable, so the caller does not need documentation to understand the terms.
03
The agent signs a payment and retries
It signs an EIP-3009 stablecoin transfer authorization with its own key and repeats the identical request, carrying the authorization in a header. Funds are never handed to the seller's server.
04
The server verifies, answers, then settles
A facilitator verifies the authorization, the server runs the request, and the payment settles on chain only when the response succeeds; the receipt rides back in a PAYMENT-RESPONSE header. A failed x402 call is not charged.
on the wire
# 1. the agent asks, without paying
POST /api/hash
# 2. the server quotes a price (base64 JSON: scheme, network, amount, asset, payTo)
HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: eyJ4NDAyVmVyc2lvbiI6MiwiZXJyb3IiOi…
# 3. the agent signs an EIP-3009 authorization and retries
POST /api/hash
PAYMENT-SIGNATURE: eyJ4NDAyVmVyc2lvbiI6MiwicGF5bG9hZCI6…
# 4. verified, the handler runs, then the payment settles
HTTP/1.1 200 OK
PAYMENT-RESPONSE: eyJzdWNjZXNzIjp0cnVlLCJ0cmFuc2FjdGlvbiI6…
{ "algo": "sha256", "hex": "…" }
The payment settles only alongside a successful response, so a failed x402 call is not charged. Because settlement lands on a public chain, both sides can check afterwards what was actually paid instead of trusting an invoice.
03 / COMPARISON
x402 vs MPP, side by side.
They differ in wire format, not in economics: same price, same settlement rule. MPP's evm method carries the same signed authorization to the same facilitator, and its tempo method settles natively on Tempo. A server can answer both on one route, which is what Agent402 does, so the buyer's client decides which dialect to speak.
x402
MPP
Full name
x402
MPP, the Machine Payments Protocol
Origin
Open standard published by Coinbase
Tempo (paymentauth.org): the Payment HTTP authentication scheme, an IETF Internet-Draft
Challenge
402 with a PAYMENT-REQUIRED header (base64 JSON payment requirements)
402 with a standard WWW-Authenticate: Payment header
Credential
PAYMENT-SIGNATURE header carrying the signed authorization (X-PAYMENT in x402 v1)
Authorization: Payment, the normal HTTP auth slot
Receipt
PAYMENT-RESPONSE response header
Payment-Receipt response header
Settlement
EIP-3009 stablecoin authorization, verified by a facilitator
evm method: identical (EIP-3009, same facilitator); tempo method: settles natively through Tempo's own relay. Same price either way
Client
@x402/fetch and other x402 clients
mppx and any HTTP client that speaks the Payment scheme
On Agent402
Served on every paid route
Served on the same routes, no configuration either side
04 / AGENTIC PAYMENTS
What agentic payments are
Agentic payments are purchases made by software rather than people. An AI agent working a task needs a live page, a filing or a conversion, and it cannot confirm an email, hold a card or accept terms of service. It can pay a fraction of a cent per call from a wallet it controls, unattended, and the payment is the identity.
The practical test of an agentic payment: could the software complete the purchase with no human awake? If a human has to approve, register, or paste a key, it is not agentic.
The economy that forms on top of these payments is Agentic Finance, and Agent402 is built as its applied layer.
05 / SETTLEMENT
Which chains settle x402 payments?
The protocol is chain-agnostic; each server picks what it accepts. Agent402 settles x402 on fourteen chains, so a buyer pays on whichever chain it already holds stablecoins on. Gas is sponsored by the facilitator on EVM chains, which means a caller needs only the stablecoin and no native gas token. Counts below are real settled calls per rail.
chain
asset
caip-2
calls settled
Base
USDC
eip155:8453
25,147
Solana
USDC
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
16,714
Robinhood Chain
USDG
eip155:4663
13,415
Algorand
USDC
algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k
3,593
Polygon
USDC
eip155:137
945
Celo
USDC
eip155:42220
594
Stellar
USDC
stellar:pubnet
423
Arc
USDC
eip155:5042
193
Arbitrum
USDC
eip155:42161
152
Monad
USDC
eip155:143
104
Avalanche
USDC
eip155:43114
70
Sei
USDC
eip155:1329
42
Optimism
USDC
eip155:10
39
Ink
USDC
eip155:57073
·
live from GET /api/stats · calls served for a stablecoin payment on each x402 chain, over either wire · the split by wire, and Tempo, are on /revenue
06 / ADOPTION
Who is actually settling x402 payments?
Not a forecast: a ranking of real sellers by Base USDC settled volume, built by crawling public x402 sellers and reading the chain. Agent402's own row is left out, so the table is evidence from other sellers.
x402 has two sides, and both are open. Charge for what you serve, or pay for what you need.
SELL
Charge agents for your API
Put an x402 paywall in front of your endpoint, then register the origin so buyers and routers can find you. Free to list, no signup, and nothing deducted from your price: buyers pay straight into your wallet.
# we probe, you appear
curl -X POST https://agent402.tools/api/index/register -H 'content-type: application/json' -d '{"origin":"https://seller.example"}'
Paste one MCP URL into Claude, Cursor, or any streamable-HTTP client and your agent can buy from 500+ tools. Pure-CPU tools run free over proof-of-work, so you can try it without a wallet.
# zero install
claude mcp add --transport http agent402 https://agent402.tools/mcp
x402 is an open payment protocol that finally uses HTTP status code 402 Payment Required. A client asks for a resource, gets a price back, pays in a stablecoin, and the same request goes through. It lets a program buy one thing with one extra request (the quote, then the paid retry), with no subscription, no checkout page and no account.
What is MPP, the Machine Payments Protocol?
MPP gives HTTP a native Payment authorization scheme, published as an IETF Internet-Draft. The server answers 402 with a WWW-Authenticate: Payment challenge, the client retries with Authorization: Payment credentials, and the settled response returns a Payment-Receipt header. It is a second wire for the same idea as x402: its evm method settles the same EIP-3009 USDC authorization, and its tempo method settles natively on Tempo.
What is the difference between x402 and MPP?
They differ in wire format, not in economics. x402 carries payment requirements in a PAYMENT-REQUIRED header and the payment in a PAYMENT-SIGNATURE header; MPP uses standard HTTP authentication headers, WWW-Authenticate: Payment and Authorization: Payment, plus a Payment-Receipt on success. The price is the same either way: MPP's evm method settles the same EIP-3009 USDC authorization through the same facilitator, and its tempo method settles natively on Tempo. A server can answer both on one route, which is what Agent402 does, so the buyer's client chooses.
What are agentic payments?
Agentic payments are purchases made by software rather than people. An AI agent cannot sign up for twenty APIs, because it has no email, no credit card and no way to accept terms, but it can pay a fraction of a cent per call from its own wallet. The wallet is the identity, so there is nothing to register and no key to rotate.
Why was HTTP 402 unused for thirty years?
HTTP reserved 402 Payment Required in 1997 as a placeholder for a digital cash system that never arrived. Card payments needed a redirect, a session and a human, none of which fit inside a single HTTP response. Stablecoins made a one-round-trip machine payment practical, so the status code finally has a payment system to describe.
Do I need a wallet or crypto to call an x402 API?
Not always. Some servers, including Agent402, offer a proof-of-work tier where your own machine solves a single-use sha256 puzzle instead of paying, costing about 65,536 sha256 hashes on average, a fraction of a second of CPU on a laptop. On Agent402 that covers the tools marked computePayable on /api/pricing; every other tool needs a wallet, and quotes its price in the 402 challenge before anything is charged.
Which blockchains settle x402 payments?
It depends on the server. Agent402 settles x402 on fourteen chains: USDC on Base, Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Arc, Ink, Stellar and Algorand, plus USDG on Robinhood Chain. Gas is sponsored by the facilitator on EVM chains, so callers need only the stablecoin. Base is the chain most public x402 indexes measure; the settlement table on this page shows where calls actually land.
How do I sell an API over x402?
Put an x402 paywall in front of your endpoint so unpaid requests answer 402 with your price and payment terms, then register the origin with a public index so buyers and routers can find you. See /sell for Agent402's own free, no-signup listing flow and how it prices routed calls.
Is an x402 payment refundable if the call fails?
On a correctly implemented server the payment only completes alongside a successful response, so a failed x402 call is not charged. Because settlement happens on a public chain, both sides can verify independently what was actually paid rather than relying on an invoice.