Get Block
get_blockGet block details (timestamp, gas used, base fee, miner, transaction count) for an Ethereum or Base block by number, hash, or 'latest'. Use to anchor events to a point in chain time.
Use when: Use when a question depends on when a block occurred, how full it was, or its base fee — for example dating a transaction or checking congestion at a specific height. For current fee levels use get_gas_price instead.
Limitations: One block per call; Ethereum mainnet and Base only. Historical base fee data depends on RPC node retention for older heights.
Alternatives: get_transaction, get_gas_price
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | No | Chain ID (1=Ethereum, 8453=Base) | |
| block_identifier | No | Block number, block hash, or 'latest'/'earliest'/'pending' | latest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | ||
| number | Yes | ||
| gas_used | Yes | ||
| timestamp | Yes | ||
| base_fee_gwei | Yes | ||
| transaction_count | Yes |