{"uid":"cap_wlxJgU7c1qQOB9ALD_ViB","slug":"riley-craig-x402-agent-store-block-number-f16263b8","name":"Riley Craig x402 Agent Store — Block Number","description":"The current chain tip (latest block height) via eth_blockNumber, across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. The freshness read settlement, indexing and trading agents poll to know where the chain is. Live public RPC; one paid call.","url":"https://store.agentexchange.work/chain/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","properties":{"chain":{"type":"string","description":"base|ethereum|optimism|arbitrum|polygon|gnosis (default base)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"block_number":{"type":"number"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_-8YlaLuvbW-f4CFLSpG3P","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 (Base, Ethereum, Optimism, Arbitrum, Polygon, or Gnosis), payable per call in USDC via x402.","exampleAgentPrompt":"What's the current block number on Base right now?","exampleUseCases":null,"resultDescription":"A JSON object containing the queried chain name (e.g. 'base') and the current block number as an integer (e.g. 47234186).","failureModes":["Unsupported chain value returns an error — only base, ethereum, optimism, arbitrum, polygon, gnosis are valid","Payment not included or insufficient USDC triggers HTTP 402 Payment Required","Network or RPC connectivity issues may result in a 5xx error","Default chain is Base if no chain query param is provided"],"whenToPreferThis":"Use this endpoint when an AI agent needs the current block number for an EVM-compatible chain without managing API keys, subscriptions, or RPC node infrastructure. Particularly useful in x402-enabled agent workflows where micro-payments per call are preferred over monthly billing. Supports 6 major EVM chains in a single unified API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:59:08.693Z","isFirstParty":false}