๐Ÿ’ฅ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

  1. Client requests data from a server.

  2. Server responds with 402 Payment Required, specifying amount & accepted token.

  3. Client signs an authorization or prepares a payment payload.

  4. A relayer (or client) submits the on-chain payment; server verifies payment on-chain.

  5. Server returns the requested data or executes the requested action.

Last updated