Get Block Number
get_block_numberRetrieves the block number and timestamp for a specific date/time or the latest block.
Use when you need a block height for a specific point in time (e.g., "block at 2024-01-01")
or the current chain tip. If `datetime` is provided, finds the block immediately
preceding that time. If omitted, returns the latest indexed block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain_id | Yes | The ID of the blockchain | |
| datetime | No | The date and time (ISO 8601 format, e.g. 2025-05-22T23:00:00.00Z) to find the block for. If omitted, returns the latest block. | |
| session_id | No | Opaque session identifier. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The main data payload of the tool's response. | |
| notes | No | A list of important contextual notes, such as warnings about data truncation or data quality issues. | |
| pagination | No | Pagination information, present only if the 'data' is a single page of a larger result set. | |
| content_text | No | Optional human-readable summary used for MCP content responses. | |
| instructions | No | A list of suggested follow-up actions or instructions for the LLM to plan its next steps. | |
| data_description | No | A list of notes explaining the structure, fields, or conventions of the 'data' payload. |