{"uid":"cap_UAJv6vVkxfSoYlIN_Ua-7","slug":"blockscout-chain-stats-api-79fc9290","name":"Blockscout Chain Stats API","description":"Access to api/v2/stats. Retrieve blockchain network statistics and metrics","url":"https://api.blockscout.com/:chain_id/api/v2/stats","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"chain_id":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_q4goezS9antzjbRpIlDnU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieve real-time blockchain network statistics and metrics for a specified chain via Blockscout","exampleAgentPrompt":"Pull up the current blockchain network stats for Ethereum mainnet from Blockscout — I want to see things like total transactions, block count, and address activity.","exampleUseCases":[{"title":"Monitor blockchain network health","prompt":"Can you fetch the latest network stats for the Polygon chain from Blockscout? I want to see transaction counts, block height, and any other key metrics."},{"title":"Compare chain activity for research","prompt":"I'm comparing activity across EVM chains — can you grab the Blockscout network statistics for Arbitrum so I can see total transactions and active addresses?"},{"title":"Dashboard data for DeFi app","prompt":"Pull the current on-chain statistics for Base from Blockscout, including block count and transaction volume, so I can update our analytics dashboard."}],"resultDescription":"Returns a JSON object containing blockchain network statistics for the specified chain, likely including total transaction count, total block count, number of addresses, gas usage metrics, token counts, and other network-level summary metrics as tracked by Blockscout's indexer.","failureModes":["Invalid or unsupported chain_id returns a 404 or error response","Chain not indexed by Blockscout returns empty or error","Network timeout if Blockscout indexer is under load","Stale data if indexer is behind the chain tip","Payment failure if x402 USDC payment is not processed correctly"],"whenToPreferThis":"Use this endpoint when you need aggregate network-level statistics for a specific blockchain chain (identified by chain_id) and want Blockscout's indexed data. Prefer this over raw RPC calls when you need pre-aggregated metrics like total transactions, total addresses, or token counts rather than individual block or transaction data. Best suited for dashboards, monitoring, and research scenarios where a holistic chain summary is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:13.462Z","isFirstParty":false}