Pricing
Each request costs $0.01 USD (paid via x402 on Base Sepolia testnet).Get Single Price
Retrieve current price data for a single cryptocurrency.Supports 500+ tokens including BTC, ETH, major altcoins, DeFi tokens, meme coins, and AI agents.
GET /api/x402/oracle/price
Query Parameters
Token symbol (e.g.,
BTC, ETH, SOL, ARB)Response
Whether the request succeeded
Token symbol in uppercase
Full token name
Current price in USD
Price currency (always “USD”)
24-hour price change percentage
Market capitalization in USD
24-hour trading volume in USD
ISO 8601 timestamp of last update
Get Batch Prices
Retrieve prices for multiple cryptocurrencies in a single request.POST /api/x402/oracle/prices
Request Body
Array of token symbols to fetch
Response
Returns the same structure as single price, but withdata as an array of price objects.
x402 Payment Flow
All Price Oracle endpoints require payment via Coinbase’s x402 protocol:- Request - Client sends request with x402 payment headers
- Payment Verification - Middleware verifies payment on Base Sepolia
- Data Delivery - CoinGecko data returned with payment receipt
- Caching - Prices cached for 30 seconds to reduce API load
Payment Details
- Price: $0.01 per request
- Network: Base Sepolia (eip155:84532)
- Seller Address:
0xbaFF2E0939f89b53d4caE023078746C2eeA6E2F7 - Payment Scheme: Exact EVM (exact amount verification)
Supported Tokens
The Oracle supports 500+ tokens including:- Top Market Cap: BTC, ETH, USDT, XRP, BNB, SOL, ADA, DOGE, AVAX, DOT
- DeFi: AAVE, UNI, LINK, CRV, MKR, SNX, COMP, SUSHI, BAL, YFI
- Layer 2: ARB, OP, STRK, ZK, METIS, IMX, MATIC (POL)
- AI Agents: TAO, FET, AGIX, VIRTUAL, AI16Z, AIXBT
- Meme Coins: PEPE, SHIB, DOGE, FLOKI, BONK, WIF, POPCAT
- New Chains: SUI, APT, SEI, INJ, TIA, HYPE, MON
Use symbol or full name (case-insensitive):
btc, bitcoin, eth, ethereum all work.