What is x402?
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 in one round trip with no subscription, no checkout page and no account.
What is MPP, the Machine Payments Protocol?
MPP is the IETF-track standard that gives HTTP a native Payment authorization scheme. 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, with the same EIP-3009 USDC settlement underneath.
What is the difference between x402 and MPP?
They differ in wire format, not in economics. x402 carries payment requirements in its own JSON body and an X-PAYMENT header; MPP uses standard HTTP authentication headers, WWW-Authenticate: Payment and Authorization: Payment, plus a Payment-Receipt on success. Both settle the same EIP-3009 USDC authorization through the same facilitator at the same price. 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 a second of CPU. A wallet is needed only for calls that cost the operator real money, and those quote their price in the 402 challenge before anything is charged.
Which blockchains settle x402 payments?
It depends on the server. Agent402 settles on twelve rails: USDC on Base, Solana, Polygon, Arbitrum, Monad, Celo, Avalanche, Sei, Optimism, Stellar and Algorand, plus USDG on Robinhood Chain. Gas is sponsored by the facilitator on EVM chains, so callers need only the stablecoin. Base carries the most volume and is the chain most public x402 indexes measure.
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 call is never charged. Because settlement happens on a public chain, both sides can verify independently what was actually paid rather than relying on an invoice.