{"uid":"cap_MKd__Vsd-BADHDv19gXzt","slug":"crypto-market-pulse-base-usdc-stats-crypto-prices-4a08d630","name":"Crypto Market Pulse & Base USDC Stats – /crypto/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/crypto/prices","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_R5rcwBLQU0CWBuRTIn6JV","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 BTC, ETH, SOL, and USDC prices with 24h change plus Base mainnet chain snapshot (block height, gas price), paid per-call in USDC on Base via x402","exampleAgentPrompt":"What are the current prices for Bitcoin, Ethereum, Solana, and USDC right now, along with their 24-hour changes and the latest Base mainnet block height and gas price?","exampleUseCases":[{"title":"Crypto portfolio dashboard refresh","prompt":"Pull the latest BTC, ETH, SOL, and USDC prices with their 24-hour changes so I can update my portfolio tracker."},{"title":"DeFi gas cost monitoring","prompt":"What's the current gas price on Base mainnet and what block are we on right now? I want to decide if now is a good time to submit a transaction."},{"title":"Market analysis agent briefing","prompt":"Give me a live market snapshot — BTC, ETH, SOL, and USDC prices from OKX with their 24h percentage changes — for my morning crypto report."}],"resultDescription":"A JSON object with a 'market' key containing BTC, ETH, SOL, and USDC prices in USD with 24h percentage changes (sourced from OKX), a 'chain' key with Base mainnet block height, chain ID, network name, and gas price in gwei, and a 'servedAt' Unix timestamp.","failureModes":["HTTP 402 returned if no x402 payment header is present — agent must pay 0.001 USDC on Base and retry with PAYMENT-SIGNATURE header","Stale or delayed prices if OKX upstream is slow or rate-limited","Base RPC unavailability causing missing or null chain fields","Network timeout on pythonanywhere.com free-tier hosting under load"],"whenToPreferThis":"Choose this endpoint when you need a single low-cost ($0.001) pay-per-call snapshot combining multiple crypto prices (BTC/ETH/SOL/USDC) and Base chain health data without API keys or subscriptions. Prefer it for agents already operating on Base mainnet that can pay via x402 and need both market and chain context in one call. Not ideal if you need order book depth, historical OHLCV, or non-Base chain data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:32:41.391Z","isFirstParty":false}