{"uid":"cap_QBV2bYB0lfHWiagCbKGfm","slug":"block-number-lookup-base-ethereum-9a1834a8","name":"Block Number Lookup (Base / Ethereum)","description":"Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.","url":"https://x402-gateway-production-1f21.up.railway.app/v1/block-number?utm_source=zero.xyz","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":{"network":{"enum":["base","ethereum"],"type":"string","default":"base"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"status":"ready"}},"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_UY4go6PXgcgWh3TyjVhmF","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 blockchain network (Base or Ethereum) via a machine-payable x402 GET request.","exampleAgentPrompt":"What's the current block number on Base right now?","exampleUseCases":[{"title":"Smart contract deployment timing","prompt":"Before I deploy my contract, can you check the current block number on Ethereum so I can record it as the deployment baseline?"},{"title":"On-chain event monitoring baseline","prompt":"I need to start tracking events from the Base network — what's the current block number so I know where to begin polling from?"},{"title":"Cross-chain sync health check","prompt":"Can you grab the latest block numbers on both Base and Ethereum so I can compare how in-sync they are right now?"}],"resultDescription":"Returns a JSON object containing the current block number for the requested blockchain network (Base or Ethereum), along with a status field confirming the service is ready. The block number reflects the most recently confirmed block at query time.","failureModes":["Invalid network parameter (not 'base' or 'ethereum') returns an error or ignores the param","Payment not included or rejected — 402 response requiring x402 payment header","Network/gateway downtime returns a non-200 status","Rate limiting or quota exceeded returns an error response","Stale or delayed block number if the upstream node is lagging"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, machine-payable, real-time block number lookup for Base or Ethereum without setting up your own RPC node. Ideal for AI agents that need on-chain timing data (e.g. deployment anchors, polling start points, monitoring baselines) and want to pay per-call in USDC via the x402 protocol rather than managing API keys or node subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:40:40.959Z","isFirstParty":false,"canonicalSlug":"block-number-lookup-base-ethereum-9a1834a8"}