What is x402?
x402 is an open protocol for paying over HTTP with the 402 "Payment Required" status code. A server answers an unpaid request with 402 and machine-readable payment terms. The client signs a stablecoin payment for exactly the quoted amount, retries with that payment in a header, and gets the result. There is no account and no API key: the wallet is the identity.
Who invented x402? Did Coinbase create it?
x402 was started at Coinbase. Coinbase contributed the protocol to the Linux Foundation, which launched the x402 Foundation as an open-governance body to steward it. The specification and the reference SDKs (TypeScript, Python, Go) live in the x402-foundation/x402 repository on GitHub.
Are Cloudflare and Stripe part of x402?
Both are listed as members of the x402 Foundation in the Linux Foundation's launch announcement, alongside Coinbase, Circle, Google, Visa, Mastercard and others. Membership means they take part in governing the standard. It does not mean every x402 payment goes through them.
How does an x402 payment work, step by step?
The client calls a paid endpoint with no payment. The server answers 402 with an accepts list: scheme, network, asset, recipient (payTo) and the exact amount. For USDC on an EVM chain the client signs an EIP-3009 transferWithAuthorization for exactly that amount, off-chain. It retries with the signed payload in the PAYMENT-SIGNATURE header (X-PAYMENT in v1). The server verifies it, usually with a facilitator, serves the result, settles the transfer on-chain, and returns a PAYMENT-RESPONSE receipt.
What is the difference between x402 v1 and v2?
v2 renames the headers (PAYMENT-REQUIRED for the challenge, PAYMENT-SIGNATURE for the payment, PAYMENT-RESPONSE for the receipt; v1 used X-PAYMENT and X-PAYMENT-RESPONSE), calls the price amount instead of maxAmountRequired, names networks with CAIP-2 ids such as eip155:8453 for Base instead of short names like base, and moves the payment terms into the PAYMENT-REQUIRED header (v1 sent them in the 402 body). A client built only for v1 rejects a CAIP-2 network before it signs.
Which chains and tokens does x402 use?
The spec is network-agnostic and the upstream repository ships SDK packages for several chain families. In practice the common case is USDC on Base, with Solana as the other widely used rail. On EVM chains the payer signs an authorization and does not need ETH for gas: whoever settles it pays the gas. Since 23 September 2026 the spec also defines bitcoin over Lightning (the "lnbtc" network, contributed by Block): the buyer pays a BOLT11 invoice and returns its preimage as proof.
Do I need an account or an API key?
No. A buyer needs a wallet holding the asset the server asks for, usually USDC on Base. A seller needs a receiving address and a way to verify and settle payments, usually a facilitator. Neither side signs up with the other.
What is an x402 facilitator?
A service that verifies and settles x402 payments for the server, through /verify, /settle and /supported endpoints, so the server does not run blockchain infrastructure. See the x402 facilitator guide on this site for the options and the checks a server should still do itself.
Does x402 have a token?
No. The x402 specification does not define or need a token of its own. Payments are made in existing stablecoins, mostly USDC. Coins listed under the name x402 on exchanges are not part of the protocol, and holding one does nothing for you as a user of x402.
Can I buy x402?
There is nothing to buy: x402 is a protocol, like HTTP, not an asset. To use it, an agent or app needs a wallet holding the stablecoin the seller accepts, usually USDC on Base, and an x402 client that signs the payment when a server answers 402.
What is x402 in AI?
It is how an AI agent pays for an API by itself. Instead of a human creating an account and an API key for every service, the agent gets a 402 with the price, signs a USDC payment from its own wallet, and retries. That lets an agent buy data or tools from services it has never seen, one call at a time.