{"uid":"cap_CAYYEeAQpJh145kxXbJ-L","slug":"base-chain-snapshot-crypto-market-prices-147c4088","name":"Base Chain Snapshot & Crypto Market Prices","description":"Pay-per-call API for AI agents, settled in USDC on Base mainnet (eip155:8453) via the x402 protocol - no API keys, no signup, no subscription. Live crypto market data: BTC, ETH, SOL, USDC (USD Coin) prices with 24h change (source: OKX), Base mainnet chain snapshot (block height, gas price gwei), real-time USDC-on-Base transfer analytics (transfer count, volume, unique senders and recipients over recent blocks), and USDC/ETH wallet balances plus nonce for any address. Agent utility tools: deterministic JSON repair for LLM output (strip code fences, fix trailing commas, single quotes, unquoted keys, balance braces), DNS A/AAAA lookup, and URL extraction from arbitrary text. Every endpoint returns HTTP 402 with an x402 payment challenge in USDC on Base; pay with any wallet and retry with the PAYMENT-SIGNATURE header. MCP server at /mcp (streamable HTTP, 6 pay-per-call tools). Ideal for crypto portfolios, DeFi dashboards, market analysis agents, data pipelines, and LLM post-processing.","url":"https://baseusdcearn.pythonanywhere.com/chain/base","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"chain":{"chainId":8453,"network":"base-mainnet","blockHeight":21000000,"gasPriceGwei":0.05},"market":{"solana":{"usd":150,"usd_24h_change":-0.5},"bitcoin":{"usd":60000,"usd_24h_change":1.5},"ethereum":{"usd":3000,"usd_24h_change":2},"usd-coin":{"usd":1,"usd_24h_change":0}},"servedAt":1755430000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_c0fq1Oyxb8ASzOGSWW7vD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live Base mainnet chain data (block height, gas price) combined with real-time BTC, ETH, SOL, and USDC prices with 24h change, paid per-call via x402 USDC on Base.","exampleAgentPrompt":"Pull the latest Base mainnet block height and gas price, along with current BTC, ETH, SOL, and USDC prices including their 24-hour change.","exampleUseCases":[{"title":"DeFi dashboard market snapshot","prompt":"Give me a live snapshot of BTC, ETH, SOL, and USDC prices with their 24-hour change, plus the current Base mainnet block height and gas price — I'm building a DeFi dashboard."},{"title":"Crypto portfolio morning briefing","prompt":"What are BTC, ETH, and SOL trading at right now, and how much have they moved in the last 24 hours? Also tell me what gas looks like on Base mainnet."},{"title":"Base gas price check before transaction","prompt":"Before I submit a transaction on Base, can you check the current gas price in gwei and also grab the latest block height so I know the chain is live?"}],"resultDescription":"A JSON object with a 'chain' object (chainId 8453, network name, current block height, gas price in gwei), a 'market' object (BTC, ETH, SOL, USDC prices in USD and 24h % change sourced from OKX), and a 'servedAt' Unix timestamp.","failureModes":["HTTP 402 returned if x402 payment header is missing or invalid — agent must pay 0.001 USDC on Base and retry with PAYMENT-SIGNATURE header","Stale or unavailable OKX market data may result in missing price fields","Base RPC unavailability could cause chain fields to be missing or outdated","PythonAnywhere free-tier cold starts may add latency on first call","No input parameters — endpoint always returns all assets; cannot filter to a single coin"],"whenToPreferThis":"Choose this endpoint when you need a single low-cost call ($0.001 USDC) that combines Base chain health metrics (block height, gas price) with live spot prices for the top four assets (BTC, ETH, SOL, USDC) in one response. It is ideal for agents already operating on Base mainnet that want to avoid managing API keys, since payment is handled natively via x402 USDC. Prefer alternatives if you need historical data, order book depth, or prices for assets beyond BTC/ETH/SOL/USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:42:55.045Z","isFirstParty":false}