{"uid":"cap_0Xx_OgHVxAaC67vp2w92c","slug":"blockscout-transaction-stats-api-33d41f96","name":"Blockscout Transaction Stats API","description":"Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data","url":"https://api.blockscout.com/%7Bchain_id%7D/api/v2/transactions/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":{"type":"json","example":{"transactions_count_24h":"string","transaction_fees_avg_24h":"string","transaction_fees_sum_24h":"string","pending_transactions_count":"string"}},"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_pZk1tcdSM8iEsLHcEsifh","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":"Returns 24-hour transaction statistics for a specified blockchain chain, including count, average fees, total fees, and pending transaction count","exampleAgentPrompt":"What are the 24-hour transaction stats for Ethereum right now — how many transactions went through, what were the average and total fees, and how many are still pending?","exampleUseCases":[{"title":"Monitor network congestion in real time","prompt":"Check the current transaction stats for the Optimism chain — I want to know how many transactions happened in the last 24 hours and how many are still pending so I can decide when to submit my transaction."},{"title":"Compare daily fee loads across chains","prompt":"Pull the 24-hour transaction fee stats for Polygon — give me the average fee and the total fee sum so I can compare it against other chains for my cost analysis."},{"title":"Track blockchain activity for a daily report","prompt":"I need today's transaction count and pending transaction count for Base for my daily on-chain activity report — can you grab those stats from Blockscout?"}],"resultDescription":"A JSON object containing four string fields: transactions_count_24h (number of transactions in the last 24 hours), transaction_fees_avg_24h (average transaction fee over 24 hours), transaction_fees_sum_24h (total transaction fees summed over 24 hours), and pending_transactions_count (current number of unconfirmed transactions).","failureModes":["Invalid or unsupported chain_id returns an error or empty response","Chain not indexed by Blockscout returns 404 or not-found error","Temporary Blockscout API downtime causes 5xx errors","Rate limiting or payment failure causes 402 or 429 responses","Stats may be slightly delayed due to indexing lag"],"whenToPreferThis":"Use this endpoint when you need a quick, aggregated 24-hour statistical summary of on-chain transaction activity for a specific EVM-compatible chain — particularly when you want fee averages, fee totals, transaction counts, and pending queue size in a single call without parsing raw transaction lists. Prefer this over full transaction list endpoints when you only need summary metrics, not individual transaction details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T00:45:26.401Z","isFirstParty":false}