{"uid":"cap_8rXGAVH0bXyqOhqss3kcC","slug":"blockscout-block-countdown-c4b20a20","name":"Blockscout Block Countdown","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/blocks/%7Bblock_number_param%7D/countdown","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"},"block_number_param":{"type":"integer"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"current_block_number":"string","countdown_block_number":"string","remaining_blocks_count":"string","estimated_time_in_seconds":"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_PH9ks0wYBSb9oMEJu_6BK","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 estimated time remaining until a specific future block number is reached on a given blockchain network","exampleAgentPrompt":"How many blocks are left and roughly how many seconds until block 21000000 is reached on Ethereum mainnet using Blockscout?","exampleUseCases":[{"title":"Smart contract deployment timing","prompt":"I'm deploying a contract that needs to go live around block 21500000 on Ethereum — can you check how many blocks are left and estimate how many seconds away that is?"},{"title":"Token unlock countdown","prompt":"A token vesting cliff unlocks at block 20800000 on Ethereum. How many blocks remain and what's the estimated time in seconds until it's reached?"},{"title":"DeFi governance proposal deadline","prompt":"Our governance proposal expires at block 19900000 on this chain with chain ID 1. How many blocks are left and how long in seconds before that block is mined?"}],"resultDescription":"Returns a JSON object with four string fields: current_block_number (the latest block on the chain), countdown_block_number (the target block queried), remaining_blocks_count (how many blocks until the target), and estimated_time_in_seconds (the time estimate to reach the target block).","failureModes":["Target block number is in the past — the countdown may return zero or an error","Invalid chain_id returns a 404 or unsupported chain error","Block number param is not an integer — schema validation failure","Target block is too far in the future — estimation accuracy may degrade","Network unavailable or Blockscout infrastructure outage returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need to estimate when a specific future block will be reached on a supported EVM chain — ideal for scheduling smart contract interactions, monitoring vesting cliffs, governance proposal deadlines, or any time-sensitive on-chain event tied to a block number. Prefer this over manual block-time math for real-time accuracy.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T00:42:21.525Z","isFirstParty":false}