{"uid":"cap_4HuGtEmIMikxMtmJf47jr","slug":"straelo-relay-evm-latest-block-number-lookup-be00174b","name":"Straelo Relay – EVM Latest Block Number Lookup","description":"Retrieve the latest block number for Ethereum or Base using a single eth_blockNumber JSON-RPC call; live chain state may change between calls. USE WHEN: an agent needs the current chain height for Ethereum or Base as a synchronization, sequencing, or transaction-context reference. DO NOT USE WHEN: the agent needs block contents, transactions, wallet balances, gas prices, historical blocks, confirmations, or finality. Parameter semantics: chain accepts exactly ethereum or base and is","url":"https://relay.straelo.com/evm-latest-block-lookup?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"chain":{"enum":["ethereum","base"],"type":"string","description":"EVM network to query for the latest block number."}}},"responseSchema":{"type":"json","example":{"chain":"ethereum","observed_at":"2026-01-01T00:00:00Z","block_number":21000000}},"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_gk24KWahU6P1m5nXrUxHw","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 (latest) block number for Ethereum or Base via a single eth_blockNumber JSON-RPC call","exampleAgentPrompt":"What's the current block number on Ethereum right now?","exampleUseCases":[{"title":"Transaction nonce anchoring for Ethereum","prompt":"Before I submit this Ethereum transaction, can you grab the latest block number so I can use it as a reference point for timing and sequencing?"},{"title":"Base chain sync check for DApp","prompt":"My app needs to know the current block height on Base to verify it's in sync — can you fetch the latest block number for Base?"},{"title":"Polling loop for block advancement","prompt":"I'm watching for a new block to appear on Ethereum — what's the current block number so I can compare it in a moment to see if the chain has advanced?"}],"resultDescription":"A JSON response containing the latest block number (as a decimal integer or hex string) for the specified EVM chain (ethereum or base), reflecting live chain state at the moment of the call.","failureModes":["Invalid chain value (not 'ethereum' or 'base') returns a validation error","Upstream RPC node unavailable or rate-limited returns a 5xx or timeout error","Payment not supplied or x402 payment rejected results in 402 Payment Required","Chain value missing from request body returns a parameter error"],"whenToPreferThis":"Use this endpoint when an agent needs only the current block number (chain height) for Ethereum or Base as a lightweight synchronization, sequencing, or transaction-context reference. Prefer it over full node queries when you do not need block contents, transactions, gas prices, or wallet data — it is a focused, low-cost single-purpose call with x402 micropayment pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:32:28.986Z","isFirstParty":false,"canonicalSlug":"straelo-relay-evm-latest-block-number-lookup-be00174b"}