chainpeek: the latest block number, timestamp and age of Ethereum, Base or Robinhood Chain
get_block_numberFetch the current block number, timestamp, and age in seconds for Ethereum, Base, or Robinhood Chain to monitor chain progress.
Instructions
chainpeek: Get the latest block number, timestamp and age in seconds of Ethereum, Base or Robinhood Chain. For the full header use get_block; for chain id and gas price use get_chain_info. Returns the latest block. One RPC read. Ethereum, Base and Robinhood only. Read-only. Reads are cached up to 30 s. A bad chain is a 422 before any payment (not charged). Typically under 1 s. Price: USD 0.001. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/ethereum-rpc-reads-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ethereum, base or robinhood (Robinhood Chain, chain id 4663). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| chain | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| block_time | No | ||
| age_seconds | No | ||
| block_number | No | ||
| block_timestamp | No |