chainpeek: chain id, latest block, head age and gas price of Ethereum, Base or Robinhood Chain
get_chain_infoFetch chain ID, head block, block age, and gas price for Ethereum, Base, or Robinhood Chain to check network liveness and fees.
Instructions
chainpeek: Get the chain id, latest block, head age and gas price of Ethereum, Base or Robinhood Chain. For gas alone use get_gas; for the header alone use get_block. Returns chain_id, the latest block_number and block_timestamp, head_age_s (seconds since the head block, a liveness check), gas_price_gwei, base_fee_gwei, and the block's gas used and limit. Three RPC reads. Ethereum, Base and Robinhood only; read-only: nothing is signed or sent. RPC reads are cached up to 30 s. A bad address, hash, hex string, block or range 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. | |
| chain_id | No | ||
| gas_used | No | ||
| gas_limit | No | ||
| head_age_s | No | ||
| block_number | No | ||
| base_fee_gwei | No | ||
| gas_price_wei | No | ||
| native_symbol | No | ||
| gas_price_gwei | No | ||
| block_timestamp | No |