{"uid":"cap_3RWWN4QRD1f1E5dbK60pT","slug":"usdc-on-base-chain-snapshot-crypto-market-prices-2f10076d","name":"USDC-on-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://cryptopulse.pythonanywhere.com/usdc-stats","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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_loHvRZuneI8r00KGjq78M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a real-time snapshot of Base mainnet chain state (block height, gas price) alongside live BTC, ETH, SOL, and USDC spot prices with 24h change, paid per-call in USDC via x402.","exampleAgentPrompt":"What are the current prices for Bitcoin, Ethereum, Solana, and USDC, and what's the latest block height and gas price on Base mainnet right now?","exampleUseCases":[{"title":"DeFi dashboard market ticker","prompt":"Pull the latest prices for BTC, ETH, SOL, and USDC along with their 24-hour changes so I can update my DeFi portfolio dashboard."},{"title":"Base gas price alerting","prompt":"What's the current gas price in gwei on Base mainnet and what block are we at? I want to know if it's cheap enough to submit a transaction right now."},{"title":"Crypto market morning briefing","prompt":"Give me a quick market snapshot — BTC, ETH, SOL, and USDC prices with how much they've moved in the last 24 hours."}],"resultDescription":"A JSON object containing: a `chain` object with Base mainnet chainId, network name, current block height, and gas price in gwei; a `market` object with USD spot prices and 24h percentage changes for bitcoin, ethereum, solana, and usd-coin; and a `servedAt` Unix timestamp indicating when the data was fetched.","failureModes":["HTTP 402 returned if x402 payment not attached — requires PAYMENT-SIGNATURE header with valid USDC payment on Base","Stale market data if OKX upstream is delayed or rate-limited","Base RPC unavailability may cause missing or outdated block height and gas price","Network errors to pythonanywhere.com hosting may return 5xx","Invalid or unparseable x402 payment signature returns 402 with error detail"],"whenToPreferThis":"Choose this endpoint when you need a single lightweight call that combines live crypto spot prices (BTC, ETH, SOL, USDC) with Base chain state (block height, gas price) and you want pay-per-call billing in USDC with no API key or subscription. Prefer it over CoinGecko or similar when operating in a crypto-native agent context that already handles x402 micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:37:35.410Z","isFirstParty":false}