{"license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"Credit the site and link to the page the figure came from."},"source":{"name":"x402 Wallet","url":"https://x402wallet.dev/blog/what-is-x402/","home":"https://x402wallet.dev/","method":"https://x402wallet.dev/methodology/","data_month":"Dec 2026","note":"Compiled from public web pages. The page behind each fact is listed in `sources` where a document has one."},"generated_at":"2026-12-05T21:35:00.000Z","site":{"key":"x402","name":"x402 Wallet","domain":"x402wallet.dev"},"slug":"what-is-x402","url":"https://x402wallet.dev/blog/what-is-x402/","json":"https://x402wallet.dev/blog/what-is-x402.json","title":"What is x402? The HTTP 402 payment protocol explained","description":"How x402 turns HTTP 402 Payment Required into a working payment step for APIs and AI agents: the roles, the request flow, the headers, what it costs, and a glossary, with figures from 142 listed projects.","author":"Editorial desk","published_at":"2026-12-02","updated_at":"2026-12-03","tags":[],"reading_minutes":8,"sources":[{"url":"https://docs.x402.org/","title":"x402 documentation: Welcome to x402"},{"url":"https://github.com/x402-foundation/x402","title":"x402 specification repository (x402-foundation/x402)"},{"url":"https://mpp.dev/mpp-vs-x402","title":"MPP: MPP vs x402 (header names of both protocols)"},{"url":"https://docs.stripe.com/payments/machine/x402","title":"Stripe docs: accept agent payments with x402"},{"url":"https://x402wallet.dev/methodology/","title":"x402 Wallet: methodology"}],"faq":[{"q":"What is x402 in one sentence?","a":"An open standard, published under the Apache-2.0 licence, that lets a server answer HTTP 402 Payment Required with a price and lets the client pay and retry in the same exchange, with no account or API key."},{"q":"Does x402 charge a fee?","a":"The x402 docs state that the standard has 0 fees built in. A facilitator, a wallet provider or the chain can still charge for its own part."},{"q":"Which chains does x402 run on?","a":"In this index, 130 of 142 projects name at least one chain. Base is named by 105 and Solana by 66, followed by Ethereum (30), Polygon (22) and Arbitrum (21)."},{"q":"Do I need a facilitator?","a":"No. The docs describe the server verifying and settling a payment itself or calling a facilitator's verify and settle endpoints. Most teams use a facilitator so they do not run chain infrastructure."},{"q":"What asset do x402 payments use?","a":"USDC in most cases: 116 of the 142 projects name USDC, out of 118 that name any asset."}],"body_markdown":"![Bar chart: Base is named by 105 of 142 x402 projects, Solana by 66, Ethereum by 30, Polygon by 22 and Arbitrum by 21](/sites/x402/blog/what-is-x402-chains.svg)\n\nx402 is the payment step the web never had. A server that wants money for a request answers with status 402 Payment Required and a machine-readable price; the client pays and sends the same request again; the server returns the data. No sign-up, no API key, no invoice. This guide explains the parts, the exact sequence and the vocabulary, then shows what the ecosystem looks like across the 142 projects in this index.\n\n\n## Contents\n\n- [Why HTTP 402 needed a protocol](#why)\n- [The four roles in a payment](#roles)\n- [One payment, step by step](#flow)\n- [What it costs](#cost)\n- [The ecosystem in figures](#figures)\n- [Glossary](#glossary)\n\n<h2 id=\"why\">Why HTTP 402 needed a protocol</h2>\n\nStatus code 402 has been reserved in HTTP since the 1990s with no agreed meaning. x402 gives it one. The x402 docs describe it as \"the open payment standard\" for charging for API access and content directly over HTTP, so that clients can pay \"without accounts, sessions, or credential management\". The specification lives in the `x402-foundation/x402` repository under the Apache-2.0 licence.\n\nThat matters most for software that pays on its own. An AI agent calling a search API, a data feed or another agent cannot fill in a checkout form. With x402 the price arrives in the response it already parses.\n\n<h2 id=\"roles\">The four roles in a payment</h2>\n\n| Role | What it does | Listed here |\n|---|---|---|\n| Client and wallet | Holds funds, signs the payment, retries the request | [21 x402 wallets](/x402-wallets/) |\n| Resource server | The API that names a price and returns data once paid | [45 pay-per-call APIs](/x402-services/) |\n| Facilitator | Verifies the signed payment and settles it on chain | [28 x402 facilitators](/x402-facilitators/) |\n| Libraries | SDKs and middleware that implement the steps | 31 SDKs and 15 middleware packages |\n\n13 of the 142 projects play more than one role, for example a facilitator that also ships an SDK, and a project can be filed in more than one list: 3 libraries sit in both SDKs and middleware. So the list counts in the table (140, plus 5 explorers) add up to 145, more than the 142 projects. The chart below counts every role a project plays, so its bars are larger again (47 paid APIs against 45 in the list).\n\n![Bar chart of the roles x402 projects play: paid APIs 47, SDKs 35, facilitators 28, wallets 23, server middleware 17, explorers 5](/sites/x402/blog/what-is-x402-roles.svg)\n\n<h2 id=\"flow\">One payment, step by step</h2>\n\nThe x402 docs describe five steps between buyer and seller:\n\n1. The client requests a resource.\n2. If payment is required, the server responds with 402 and payment instructions: scheme, network, asset, amount and the address to pay.\n3. The client prepares a signed payment payload and sends the request again with it.\n4. The server verifies and settles the payment itself, or calls a facilitator's `/verify` and `/settle` endpoints.\n5. If the payment is valid, the server returns the resource.\n\nIn the current version the requirements, the signed payment and the settlement result travel in three headers, listed on the MPP comparison page as `PAYMENT-REQUIRED`, `PAYMENT-SIGNATURE` and `PAYMENT-RESPONSE`. Stripe's x402 guide shows the first one in practice: a `curl -iv` against a paid route returns `HTTP/1.1 402 Payment Required` with a `payment-required` header holding a base64 payload. You can see the same thing for any public endpoint with the [402 header debugger](/tools/402-header-debugger/).\n\nThe `exact` scheme moves a fixed amount per request. The `upto` scheme authorises a ceiling and settles what was used. Of the 28 facilitators listed here, 13 name the exact scheme and 7 name upto.\n\n<h2 id=\"cost\">What it costs</h2>\n\nThe docs are direct: \"x402 as a standard has 0 fees built in.\" Costs come from the parts around it:\n\n- Facilitator fees, where a facilitator charges. Only 4 of the 28 facilitators here publish a pricing model, so read each one's docs.\n- Network fees on the chain that settles. 10 of the 28 facilitators name gas sponsorship, which moves that cost off the payer.\n- The price the API sets per call, which is the point of the exercise.\n\n<h2 id=\"figures\">The ecosystem in figures</h2>\n\nCounted from the 142 projects in this index on 3 December 2026, each from its own README, docs or Bazaar listing:\n\n| Chain | Projects naming it (of 142) |\n|---|---:|\n| Base | 105 |\n| Solana | 66 |\n| Ethereum | 30 |\n| Polygon | 22 |\n| Arbitrum | 21 |\n| Monad | 12 |\n\n130 projects name at least one chain, so 12 name none. On assets, 116 of the 142 projects name USDC (118 name any asset); SOL (19) and ETH (17) follow. 61 of 142 are open source and 75 have a public repository. A name in a README is not a test: check the source link on each profile before you commit to a chain.\n\n<h2 id=\"glossary\">Glossary</h2>\n\n**402 Payment Required.** The HTTP status a server returns when a request needs payment. x402 defines what goes with it.\n\n**Payment requirements.** The machine-readable offer in the 402 response: scheme, network, asset, amount, pay-to address.\n\n**Facilitator.** A service that verifies a signed payment and settles it on chain for the resource server. See the [facilitator comparison guide](/blog/how-to-choose-an-x402-facilitator/).\n\n**Scheme.** The rule for how much moves: `exact` for a fixed amount, `upto` for a ceiling with metered settlement.\n\n**Bazaar.** The public discovery listing where x402 services publish their endpoints, networks and prices. This index shows its call counts as reported and never scores them.\n\n**Pay-to address.** The on-chain address that receives the payment, set by the seller.\n\n**Agent wallet.** A wallet an AI agent controls through code, usually with spend limits.\n\nHow every figure on this site is collected is on the [methodology page](/methodology/)."}