๐ฅWhat is x402?
x402 revives the unused HTTP status code 402 โ Payment Required and transforms it into a real, blockchain-powered payment signal. It enables websites, dApps, and APIs to receive instant payments in crypto for any request without accounts, subscriptions, or intermediaries.
This turns the web into a programmable marketplace where every API call, every data request, and every computation can carry real value. Through x402, payments are:
โก Instant: settled in real-time
๐ช Crypto-native: $USDC
๐งฉ Gasless for users: using EIP-3009
How It Works
Client requests data from a server.
Server responds with
402 Payment Required, specifying amount & accepted token.Client signs an authorization or prepares a payment payload.
A relayer (or client) submits the on-chain payment; server verifies payment on-chain.
Server returns the requested data or executes the requested action.
Last updated