{"uid":"cap_a9-iVI-wb0q47UnxQc6Wh","slug":"agent402-block-number-lookup-26391b18","name":"Agent402 Block Number Lookup","description":"The latest block number on Ethereum, Base, Polygon, Arbitrum, or Optimism. The cheapest possible on-chain read - the hello world of paid chain access. Keyless multi-endpoint failover. ?network=base","url":"https://agent402.tools/api/block-number","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":[],"properties":{"network":{"type":"string","description":"ethereum / base / polygon / arbitrum / optimism (default base)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["network","blockNumber","hex"],"properties":{"hex":{"type":"string"},"network":{"type":"string"},"blockNumber":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"hex":"0x19bfcc0","network":"base","blockNumber":27000000}},"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_6wNzkEOjYq2buiU8OXyCp","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 current block number for a specified EVM-compatible blockchain network (defaulting to Base)","exampleAgentPrompt":"What's the current block number on Base right now?","exampleUseCases":[{"title":"Confirm transaction finality on Base","prompt":"Can you check the current block number on Base so I can confirm my transaction from block 27000000 has enough confirmations?"},{"title":"Monitor Ethereum block height","prompt":"What block is Ethereum mainnet on right now? I need to track how many blocks have passed in the last hour."},{"title":"Sync onchain state across Polygon","prompt":"Fetch me the latest block number on Polygon — I need to make sure my indexer isn't falling behind."}],"resultDescription":"Returns a JSON object containing the current block number as a decimal integer (blockNumber), its hexadecimal representation (hex), and the network name (network). Example: {\"hex\":\"0x19bfcc0\",\"network\":\"base\",\"blockNumber\":27000000}.","failureModes":["Unsupported network name returns an error — only ethereum, base, polygon, arbitrum, and optimism are valid","Payment failure (insufficient USDC balance or unsupported chain) results in a 402 response before data is returned","Network RPC downtime may cause delayed or failed responses","Malformed query parameter (e.g. misspelled network name) defaults to base or returns an error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.001), no-signup way to get the current block number on Base or other major EVM chains. Ideal for agents that need onchain timing context, transaction finality checks, or block-indexed queries without setting up a full RPC provider connection. Supports Base, Ethereum, Polygon, Arbitrum, and Optimism via x402 micropayment — no API key required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:04.659Z","isFirstParty":false}