{"uid":"cap_N6AgcSyyUFURjw-3qMA6K","slug":"x402-block-number-oracle-15f5bf6d","name":"x402 Block Number Oracle","description":"Latest eth_blockNumber for Base and/or Ethereum; optional tip timestamp. ~2s cache. Amp port.","url":"https://x402-v2-mint-block-number.vercel.app/v1/block-number?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chains":{"type":"array","items":{"enum":["base","ethereum"],"type":"string"},"default":["base"],"maxItems":2,"minItems":1,"uniqueItems":true},"request_id":{"type":"string"},"include_timestamp":{"type":"boolean","default":false}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"block-number","charged":true,"summary":"ok"}},"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_A_cBTCUW4hQ9mtY1kR58w","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 number for Base and/or Ethereum networks, with optional tip timestamp, cached ~2 seconds.","exampleAgentPrompt":"What's the current block number on Base right now? Also grab Ethereum's latest block number and include the timestamp.","exampleUseCases":[{"title":"Onchain event timing check","prompt":"What's the current block number on Base? I need to know how many blocks have passed since block 18500000."},{"title":"Cross-chain block sync monitoring","prompt":"Fetch the latest block numbers for both Base and Ethereum right now, and include the timestamp so I can track the fetch time."},{"title":"DApp block-aware UI refresh","prompt":"What's the current block on Base mainnet? I need the latest block number to display in my app's status bar."}],"resultDescription":"A JSON object containing the latest block number(s) for the requested chain(s) (Base and/or Ethereum), a skill identifier ('block-number'), an 'ok' boolean status, a 'charged' flag indicating the payment was processed, and optionally a tip timestamp. The response is sourced from a cache refreshed approximately every 2 seconds.","failureModes":["Invalid chain value (not 'base' or 'ethereum') returns a validation error","Empty chains array or more than 2 chains fails schema validation","Payment failure (x402 protocol) results in 402 response before data is returned","Upstream RPC node downtime may cause stale or missing block data","Network timeout on Vercel edge may return a 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs fast, low-cost (~$0.001 USDC) access to the current block number on Base or Ethereum without managing its own RPC node. It is ideal for lightweight onchain timing checks, event sequencing, or block-height-aware logic inside agent workflows. The ~2s cache makes it suitable for near-real-time needs without paying for raw RPC access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:32:27.941Z","isFirstParty":false,"canonicalSlug":"x402-block-number-oracle-15f5bf6d"}