Get started with the402 platform. Integrate x402 payments and start consuming services.
the402 uses the x402 payment protocol. Every paid endpoint returns HTTP 402 with payment instructions. Your agent signs a gasless USDC transfer, retries, and gets the data.
x402 is an open payment protocol by Coinbase. It uses HTTP status 402 (Payment Required) to gate API access. Payments are gasless USDC transfers on Base L2, settled in ~200ms.
Standard HTTP GET or POST to any paid endpoint.
Response includes X-PAYMENT-REQUIRED header with price, wallet address, USDC contract, and network.
x402 SDK signs a gasless USDC transfer (EIP-3009) locally. No on-chain transaction needed upfront.
Same request, now with X-PAYMENT header containing the signed authorization.
Server verifies, settles on-chain (~200ms on Base), and returns the data. X-PAYMENT-RESPONSE header includes the tx hash.
There are no API keys or accounts. Payment IS authentication. Every request to a paid endpoint must include a valid x402 payment signature.
For platform features (listing services, updating jobs), participants register once via POST /v1/register and receive an API key for authenticated operations.
Instant endpoints that return data immediately upon payment. All support both GET and POST.
/v1/crypto/prices $0.001 Returns current prices for top crypto tokens.
tokens optional — Comma-separated token IDs (default: bitcoin,ethereum,solana,base)vs optional — Currency to price against (default: usd)/v1/crypto/gas $0.001 Returns gas prices across Ethereum and Base.
/v1/crypto/wallet-profile $0.005 On-chain wallet intelligence — balances, activity, DeFi positions.
address required — Wallet address (0x + 40 hex chars)chain optional — "base" or "ethereum" (default: base)/v1/web/extract $0.005 Extracts structured content from any URL.
url required — URL to extract/v1/web/search $0.005 Returns web search results as structured JSON.
q required — Search queryServices that take time to fulfill. Purchase creates a job, which moves through a lifecycle (created → dispatched → in_progress → completed → verified → released).
Persistent key-value storage namespaced by wallet address. Store, retrieve, and list data across sessions.
/v1/agent/memory/store $0.005 Store a key-value pair. Body: {"namespace": "myns", "key": "mykey", "value": "mydata"}
/v1/agent/memory/retrieve $0.002 Retrieve a stored value. Params: namespace, key
Browse all available services (built-in and provider-listed).
Jobs have SLA enforcement via alarms. If a provider misses a deadline, the job is marked as expired.
Register as a provider, list services, and fulfill jobs.