{"uid":"cap_2WKxgfGgzpQXdxvNiRp-h","slug":"evm-chain-latest-block-query-fb929b5b","name":"EVM Chain Latest Block Query","description":"Latest block on any major EVM chain: block number, timestamp, age in seconds, base fee and gas used/limit. The cheapest possible liveness and chain-tip check for an agent: confirm a chain is progressing, timestamp an observation, or pick a block for a query.","url":"https://chain.cyberwarex.com/block","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"},"queryParams":{"type":"object","properties":{"chain":{"enum":["base","ethereum","arbitrum","optimism","polygon"],"type":"string","default":"base","description":"EVM chain to query."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hash":{"type":"string"},"chain":{"type":"string"},"number":{"type":"integer"},"chain_id":{"type":"integer"},"gas_used":{"type":"integer"},"tx_count":{"type":"integer"},"gas_limit":{"type":"integer"},"timestamp":{"type":"integer"},"age_seconds":{"type":"integer"},"base_fee_gwei":{"type":"number"}}}}}}},"responseSchema":null,"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_1_uegpVFvlD2uaOpcqfi_","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 the latest block details (number, timestamp, age, base fee, gas used/limit) for any major EVM chain","exampleAgentPrompt":"What's the latest block on Base right now — give me the block number, timestamp, base fee, and how old it is in seconds?","exampleUseCases":[{"title":"Chain liveness health check","prompt":"Is Ethereum still progressing normally? Check the latest block and tell me how many seconds ago it was mined."},{"title":"Base fee snapshot before transaction","prompt":"Before I send a transaction on Arbitrum, can you grab the latest block and tell me the current base fee in gwei and the gas limit?"},{"title":"Timestamp an onchain observation","prompt":"I need to record when I made this observation — what is the exact Unix timestamp of the latest block on Polygon right now?"}],"resultDescription":"Returns a JSON object containing the block hash, block number, chain name, chain ID, gas used, transaction count, gas limit, Unix timestamp, age in seconds since that block was mined, and base fee in gwei for the requested EVM chain.","failureModes":["Unsupported chain name returns a validation error — only base, ethereum, arbitrum, optimism, polygon are accepted","Network or RPC timeout if the underlying node is unreachable","Payment required error (402) if the x402 payment header is missing or insufficient","Stale data if the node is behind the chain tip, possibly inflating age_seconds"],"whenToPreferThis":"Use this endpoint when you need the cheapest and simplest way to confirm an EVM chain is live, get the current block number or timestamp, or read the current base fee without needing full transaction or wallet data. Prefer this over wallet or transaction endpoints when you only need chain-level liveness or timing information.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:30:38.920Z","isFirstParty":false}