{"uid":"cap_ztX8QQa32YqNToNe7nr-H","slug":"block-number-lookup-base-ethereum-0a3166d2","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/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_FfVB0uYPbSiXXLppXqyqw","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 the Base network right now?","exampleUseCases":[{"title":"Transaction finality check for DeFi agent","prompt":"What is the current block number on Base? I need it to calculate how many confirmations my recent transaction has."},{"title":"On-chain timing logic for smart contract automation","prompt":"Fetch the latest block number on Ethereum so I can determine whether enough blocks have passed to trigger the next step in my automation."},{"title":"Real-time block height monitoring for trading bot","prompt":"Give me the current block height on Base — I need it to timestamp my trading signals accurately."}],"resultDescription":"Returns a JSON object containing the current block number for the requested network (Base or Ethereum), along with a status field indicating readiness of the response.","failureModes":["Invalid or unsupported network value returns an error (only 'base' and 'ethereum' are supported)","Payment failure or insufficient USDC balance results in a 402 response with no data","Network RPC outage may cause delayed or failed block number retrieval","Stale data if upstream node is lagging behind chain tip"],"whenToPreferThis":"Use this endpoint when an autonomous agent needs a real-time, machine-payable block number lookup for Base or Ethereum without setting up its own RPC node. Ideal for agents that need current block height for transaction confirmation counting, on-chain timing, or sequencing smart contract actions. Prefer this over free public RPCs when operating in a pay-per-use x402 agent payment architecture where cost accounting per call is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-14T12:37:09.828Z","isFirstParty":false,"canonicalSlug":"block-number-lookup-base-ethereum-9a1834a8"}