{"uid":"cap_H4gXnU7wGXLsUkyu6C956","slug":"evm-blockchain-latest-block-info-8cfb86d6","name":"EVM Blockchain Latest Block Info","description":"Latest known block (number, timestamp, hash) of an EVM blockchain, read live via a public RPC endpoint (viem) — no API key, no aggregator. Parameter: ?chain=<base|ethereum>.","url":"https://x402-seller-0ay3.onrender.com/api/chain/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"],"type":"string"},"queryParams":{"type":"object","required":["chain"],"properties":{"chain":{"enum":["base","ethereum"],"type":"string","description":"EVM chain to query."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"base","timestamp":"2026-09-01T12:00:00.000Z","block_hash":"0xabc...","fetched_at":"2026-09-01T12:00:05.000Z","block_number":21500000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JwtroWl4_DcbmwKOjs4Vz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 number, timestamp, and hash for a specified EVM blockchain (Base or Ethereum) by querying a live public RPC endpoint.","exampleAgentPrompt":"What's the latest block number, hash, and timestamp on the Base blockchain right now?","exampleUseCases":[{"title":"Confirm transaction finality on Base","prompt":"I need to know the current block number on Base so I can check whether my transaction from 10 minutes ago has been confirmed — what's the latest block?"},{"title":"Monitor Ethereum block height over time","prompt":"Every minute, check the latest Ethereum block number and alert me if it stops advancing — something might be wrong with the network."},{"title":"Timestamp a workflow with the latest block","prompt":"I'm logging an on-chain event and need the current Base block number and timestamp to anchor it — can you grab that for me right now?"}],"resultDescription":"A JSON object containing the chain name (e.g. 'base'), the latest block number as an integer, the block hash as a hex string, the block timestamp as an ISO 8601 datetime, and a fetched_at datetime indicating when the data was retrieved.","failureModes":["Unsupported chain value returns an error — only 'base' and 'ethereum' are accepted","Public RPC node downtime may cause fetch failures or stale data","Network latency on the RPC provider side can cause occasional timeouts","Missing or invalid 'chain' query parameter results in a validation error"],"whenToPreferThis":"Choose this endpoint when you need a quick, no-API-key lookup of the latest block on Base or Ethereum without setting up your own RPC connection or using a centralized aggregator. It is ideal for agents that need to timestamp events, verify chain liveness, or anchor on-chain logic to the current block height without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:42.844Z","isFirstParty":false}