What is x402?
x402 is an open protocol that lets software pay for a web resource per request by using the HTTP 402 Payment Required status code. A server answers an unpaid request with 402 and machine-readable payment terms; the client signs a stablecoin payment authorization and repeats the request; the server verifies and settles the payment and returns the result. The seller's declared flow uses signed requests rather than an account or subscription. On market.561.group there are 335 seller-listed offers with USDC price previews on Base; a listing does not establish available or fulfilled service. Browse them all.
How HTTP 402 works
HTTP reserved status 402 for payments but never defined how. x402 defines it: the 402 response carries a PAYMENT-REQUIRED header, a base64 JSON document listing what the server will accept for this exact request (scheme, network, asset, amount, payee, timeout). The client answers with a PAYMENT-SIGNATURE header, and a successful response carries a PAYMENT-RESPONSE header with the settlement receipt. Coinbase CDP is the seller-declared facilitator; verify current 402 terms before considering a purchase.
A paid request, step by step
The example describes a seller-listed offer, not a verified completed sale: The x402 Economy, with a declared price preview of $9.00 USDC. A listing never verifies that a deployed route actually quotes or delivers.
- Ask without paying.
curl --include --request 'GET' --url 'https://market.561.group/v1/publications/the-x402-economy' - Inspect any returned 402. If the endpoint is installed and available, a valid unpaid request should return
402. Decode thepayment-requiredheader (base64 JSON). An actualaccepts[0]must be checked for itsscheme,network,amount,asset,payToandmaxTimeoutSeconds. For illustration only,amount: "9000000"represents 9.00 USDC when the token uses 6 decimals; it is not an observed quote or a trustworthy current payee. - Sign. Your wallet signs an EIP-3009
transferWithAuthorizationfor exactly those terms. The authorization is valid only for that payee, amount and time window. - Retry with payment. Repeat the identical request with the header
PAYMENT-SIGNATURE: <base64 payload>(an x402 client library builds this). - Verify delivery. A completed service should verify the authorization, settle it through the facilitator, and return
200with the purchased bytes and aPAYMENT-RESPONSEheader.
The /.well-known/x402 endpoint declares seller resources. A declaration is not proof a given route answers 402, completes payment or delivers useful output; independently check current responses before signing.
Declared design and safeguards to verify
- Prepayment input validation is a requirement. Authored contracts specify that invalid input should return 400 or 422 before a 402 challenge; installed behavior remains to be verified. Try RFC 8785 Canonical JSON with a duplicate JSON key: the required response is
422without payment terms, if the serving route conforms. A valid request should then receive the 402 if the serving route is available. - Repeat-purchase recovery. Recoverable offers (the books) accept an
X-Payment-Recoverytoken, 32 random bytes as 64 hex characters that you save before paying. Repeating the same signed request with it returns the exact purchased response, but this listing alone cannot prove that recovery or refunds actually work. - Buyer-side payee check. A payee address read from the seller's own 402 is not independent evidence of who gets paid. The repository's reference buyer takes a separately supplied
X402_EXPECTED_PAY_TOand refuses a different payee. - Conditional Sign-in-with-X. A correctly bound deployment may advertise
sign-in-with-xon an actual 402 response to explicitly granted wallets. This seller listing does not prove that the extension or access grant is installed, or that a wallet can receive service without payment. Check the current response and your separately authorized grant. - One catalog, many projections. The same offer list is served as x402 discovery, the JSON catalog, OpenAPI, an A2A agent card, read-only MCP discovery (
POST /mcp), an ActivityPub actor, llms.txt and these pages. None of them keeps a second price list. - A four-valued reading of 402. The market's
/v1/four/offers implement Belnap's four-valued logic, where a point can be told true, told false, both, or neither. Read that way, a 402 is told "both": it answers (the request was understood and priced) and it refuses (the content is withheld until payment).
Seller-listed book about x402
The x402 Economy ($9.00 USDC) covers HTTP 402's history, a paid request step by step, who governs x402, its rivals, market measurements, security and US law. The listing describes EPUB and PDF delivery through x402; paid fulfillment has not been independently verified on this page.
Frequently asked questions
What is x402?
x402 is an open payment protocol that uses the HTTP 402 Payment Required status code so software can pay for a web resource per request. The server answers an unpaid request with 402 and machine-readable payment terms; the client signs a payment and retries; the server verifies, settles and returns the resource.
What is HTTP 402 Payment Required?
402 is a status code reserved in HTTP for payment. x402 gives it a concrete meaning: the response carries a PAYMENT-REQUIRED header describing the amount, asset, network and payee for that exact request.
Which network and currency does market.561.group use?
The seller declares USDC on Base mainnet (CAIP-2 id eip155:8453) via Coinbase CDP. Read any actual 402 challenge for current terms and independently verify the recipient; the catalog is not a settlement receipt.
How much does a call cost?
Declared price previews range from 0.001 to 12 USDC per request across 335 priced listings of 335 seller-listed offers, according to /v1/catalog. Some offers price by input size and show a starting price; their installed 402 response must quote the exact amount.
Do I need an account or API key?
The seller catalog does not declare an account or API key for the normal paid flow. A signed payment can authorize a request if the endpoint is installed. Wallet sign-in is conditional: it works only when the installed service advertises Sign-in-with-X and the operator has independently granted that wallet access. A listing does not establish a grant or a working sign-in path.
What happens if I send bad input?
The intended contract validates inputs before charging and refuses invalid input with 4xx, without payment terms. This must be verified on the installed endpoint; a source declaration alone is not that evidence.
What if my connection drops after I pay?
Some listings declare X-Payment-Recovery support. Confirm installed recovery behavior, persist a private recovery token before paying, and verify the returned body against the purchase receipt; do not assume a retry or refund succeeded.
How do I know I am paying the right party?
The 402 names the payee, but a payee read from the seller proves nothing by itself. The reference buyer in this market's repository checks it against a payee you supply independently through the X402_EXPECTED_PAY_TO environment variable.
Where can I read about x402 in depth?
The book The x402 Economy covers the history of HTTP 402, a paid request step by step, who governs x402, its rivals, market measurements, security and US law. It is listed on this market; availability and delivery are not independently verified here.
Endpoints cited on this page
- /.well-known/x402 · /v1/catalog · /openapi.json · /llms.txt · /.well-known/agent-card.json · /actors/market · /offers/
- Publisher: Causeway Services, a 561 Group company.