{"uid":"cap_jZhdvxGjrqK1AotAY-Fiq","slug":"agent-chain-kit-evm-block-number-f9fc8db5","name":"Agent Chain Kit – EVM Block Number","description":"Pay-per-call EVM utility API for AI agents and automation.","url":"https://built-with-productos-voo8.vercel.app/v1/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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"network":{"enum":["ethereum","base","arbitrum","polygon"],"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"hex":"0x20f85d2","network":"base","block_number":34567890}},"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_yGFUqzJkSUumfnhg1ji0U","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 network (Ethereum, Base, Arbitrum, or Polygon) with multi-RPC failover.","exampleAgentPrompt":"What's the current block number on Base right now? I need it in both hex and decimal.","exampleUseCases":[{"title":"Smart contract deployment timing check","prompt":"What's the current Ethereum block number? I want to make sure my contract deployment window hasn't passed yet."},{"title":"On-chain automation trigger","prompt":"Keep checking the current block number on Arbitrum and let me know when it hits 200000000 so I can trigger my script."},{"title":"Multi-chain block height comparison","prompt":"Can you grab the current block numbers for Base and Polygon so I can compare how fast each chain is moving?"}],"resultDescription":"A JSON object containing the current block number as a decimal integer (`block_number`), the same value in hexadecimal (`hex`), and the `network` name that was queried. Example: {\"hex\":\"0x20f85d2\",\"network\":\"base\",\"block_number\":34567890}.","failureModes":["Network not supported — only ethereum, base, arbitrum, polygon are valid enum values","All RPC endpoints for the selected network are unavailable (multi-RPC failover exhausted)","Payment failure — missing or invalid x402 payment header results in 402 response","Rate limiting or upstream RPC timeout causing delayed or failed response"],"whenToPreferThis":"Choose this endpoint when you need a reliable, pay-per-call EVM block number lookup with multi-RPC failover across Ethereum, Base, Arbitrum, or Polygon — especially in agent or automation workflows where uptime is critical and you don't want to manage your own RPC node. Prefer it over self-hosted RPC calls when simplicity, failover resilience, and low per-call cost ($0.001 USDC) matter more than maintaining your own infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:30:26.688Z","isFirstParty":false}