{"uid":"cap_qHtLp-ajpBisrgCt0i6tj","slug":"grokzilla-block-number-lookup-2dcd6bd3","name":"Grokzilla Block Number Lookup","description":"Latest eth_blockNumber for Base and/or Ethereum, optional block timestamp. Cached ~2s.","url":"https://grokzilla.shop/api/skills/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","pattern":"^[A-Za-z0-9._:-]+$","maxLength":64,"minLength":1,"description":"Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."},"include_timestamp":{"type":"boolean","default":false,"description":"When true, also fetch eth_getBlockByNumber for the tip timestamp"}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"as_of":"2026-10-26T14:00:00Z","results":[{"chain":"base","chain_id":8453,"block_hex":"0x14fb180","timestamp":null,"block_number":22000000,"timestamp_iso":null}]},"next":["tx_status","gas_price"],"skill":"block_number","charged":true,"service":"block_number","sources":[{"url":"chain:8453","name":"base eth_blockNumber","fetched_at":"2026-10-26T14:00:00Z"}],"summary":"base#22000000","version":"1.0.0","warnings":[],"confidence":0.95,"data_as_of":"2026-10-26T14:00:00Z","generated_at":"2026-10-26T14:00:00Z"}},"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_kH_XmP31lhJAvgIn4DlSh","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 (and optionally block timestamp) for Base and/or Ethereum mainnet, cached approximately every 2 seconds.","exampleAgentPrompt":"What's the current block number on Base mainnet right now, and can you include the block timestamp?","exampleUseCases":[{"title":"Real-time Base block monitoring","prompt":"What's the latest block number on Base right now? I need to know how far along the chain is for a transaction I'm tracking."},{"title":"Ethereum block height with timestamp","prompt":"Fetch the current Ethereum mainnet block number and include the timestamp so I know exactly when this block was mined."},{"title":"Multi-chain block sync check","prompt":"Give me the current block numbers for both Base and Ethereum at the same time — I need to compare where each chain is right now."}],"resultDescription":"Returns a JSON object with ok status, the current block number in decimal and hex, chain ID, optional ISO-8601 block timestamp, confidence score, data freshness timestamp, and a human-readable summary string (e.g. 'base#22000000'). Also includes suggested next skill calls.","failureModes":["Invalid chain name in 'chains' array returns a validation error","Network or RPC node unavailability may result in stale or failed data","Missing required 'chains' field returns a schema validation error","Payment failure (x402) prevents call from being processed"],"whenToPreferThis":"Use this endpoint when you need the current block number for Base and/or Ethereum mainnet with low latency (~2s cache), especially if you also want the block timestamp in a single call. Prefer over raw RPC calls when you want a simple JSON API with micropayment access and no node infrastructure to manage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T00:45:17.089Z","isFirstParty":false,"canonicalSlug":"grokzilla-block-number-lookup-2dcd6bd3"}