{"uid":"cap_jQASbHTDjDqmxbtinOo1a","slug":"riley-craig-x402-agent-store-chain-block-number-9dbfb25f","name":"Riley Craig x402 Agent Store — Chain 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 at $0.001.","url":"https://x402-agent-store.rileycraig14.workers.dev/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":{"type":"json","example":{"chain":"base","block_number":47234186}},"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_j27044MfIUvZQPpIlE32Q","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 (Base, Ethereum, Optimism, Arbitrum, Polygon, or Gnosis)","exampleAgentPrompt":"What's the current block number on Base right now? Pay per call, no API key needed.","exampleUseCases":[{"title":"Confirm Ethereum transaction finality","prompt":"I just submitted a transaction on Ethereum — can you grab the current block number so I can track how many confirmations it has so far?"},{"title":"Check Arbitrum chain liveness","prompt":"Is the Arbitrum network still producing blocks? Fetch the latest block number and let me know if things look normal."},{"title":"Sync Polygon indexing checkpoint","prompt":"I need the current block height on Polygon to know where my indexer should resume syncing from — can you pull that for me?"}],"resultDescription":"A JSON object containing the chain name (e.g. 'base') and the current block number as an integer (e.g. {\"chain\":\"base\",\"block_number\":47234186}). The block number reflects the latest confirmed block at time of request.","failureModes":["Invalid chain name returns an error or defaults to base","Network congestion may cause slight staleness in block number","Payment failure via x402 returns a 402 Payment Required response","Unsupported chain identifier returns a validation error"],"whenToPreferThis":"Use this endpoint when you need a quick, no-signup, pay-per-call lookup of the current block height on any major EVM chain (Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis). Ideal for AI agents that need on-chain timing data, block confirmation checks, or chain liveness checks without managing API keys or subscriptions. Prefer this over free RPC endpoints when operating in an x402 micropayment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:46:00.950Z","isFirstParty":false}