{"uid":"cap_aZfnS94dOIKvOgIcPnTnj","slug":"blockscout-main-page-blocks-endpoint-2d5a7d2b","name":"Blockscout Main Page Blocks Endpoint","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/main-page/blocks","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":[{"hash":"string","size":0,"type":"string","miner":{},"nonce":"string","height":0,"rewards":[{"type":"string","reward":"string"}],"arbitrum":{"status":"string","send_root":"string","send_count":0,"batch_number":0,"l1_block_number":0,"delayed_messages":0,"batch_data_container":"string","commitment_transaction":{"hash":"string","status":"string","timestamp":"string"},"confirmation_transaction":{"hash":"string","status":"string","timestamp":"string"}},"gas_used":"string","gas_limit":"string","timestamp":"string","burnt_fees":"string","difficulty":"string","parent_hash":"string","priority_fee":"string","uncles_hashes":[{"hash":"string"}],"base_fee_per_gas":"string","total_difficulty":"string","transaction_fees":"string","is_pending_update":true,"withdrawals_count":0,"transactions_count":0,"gas_used_percentage":0,"burnt_fees_percentage":0,"gas_target_percentage":0,"internal_transactions_count":0}]},"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_vI_3xuvCjILc_8cy9p8qt","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 the latest blocks on a specified blockchain network via Blockscout's multichain explorer API","exampleAgentPrompt":"Pull up the latest blocks on Arbitrum from Blockscout so I can see recent block heights, transaction counts, and gas usage.","exampleUseCases":[{"title":"Monitor recent Ethereum block activity","prompt":"Show me the most recent blocks on Ethereum mainnet — I want to see block heights, how many transactions each had, and the gas used."},{"title":"Check Arbitrum block rewards and fees","prompt":"Fetch the latest blocks on Arbitrum from Blockscout so I can check miner rewards, burnt fees, and base fee per gas for the current network conditions."},{"title":"Track block production speed on Optimism","prompt":"Get the latest main-page blocks on Optimism so I can see recent timestamps and figure out how fast blocks are being produced right now."}],"resultDescription":"Returns an array of recent block objects, each containing block hash, height, size, type, miner details, nonce, rewards, gas used, gas limit, timestamp, burnt fees, base fee per gas, transaction fees, transaction count, internal transaction count, withdrawals count, difficulty, parent hash, uncles hashes, gas used percentage, burnt fees percentage, gas target percentage, and chain-specific fields (e.g. Arbitrum batch info). Useful for understanding the current state of a blockchain network.","failureModes":["Invalid or unsupported chain_id returns 404 or empty result","Network timeout if the target chain's node is unreachable","Rate limiting or 402 payment required if USDC payment not provided","Malformed path parameter results in a 400 Bad Request","Chain-specific fields (e.g. Arbitrum fields) absent when querying non-Arbitrum chains"],"whenToPreferThis":"Choose this endpoint when you need a real-time snapshot of the most recent blocks on a specific blockchain network supported by Blockscout. It is ideal for monitoring block production, inspecting gas metrics, or building dashboards that display chain activity. Prefer it over raw node RPC calls when you want pre-parsed, structured block data across multiple chains without running your own infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-10T00:48:03.624Z","isFirstParty":false}