1. Discover endpoints (free)
The discovery API requires no payment. Use it to explore available endpoints and pricing.2. Set up a wallet
You need a wallet with testnet USDC on Base Sepolia. You’ll use the wallet’s private key to sign x402 payments.3. Install the x402 client
4. Make your first request
402, it reads the payment instructions, signs a transaction, and retries. From your code’s perspective, it’s just a GET request.
5. Use tiers for variable-length data
Endpoints with dynamic pricing (transactions, event logs) require atier parameter:
If your selected tier is too small for the response, you’ll get a
402 indicating the correct tier.