block_heights
Retrieve block heights for a blockchain network within a specific date range, enabling historical analysis and time-based queries. Input chain name, start and end dates.
Instructions
Commonly used to get all the block heights within a particular date range. Requires chainName (blockchain network), startDate (YYYY-MM-DD format), and endDate (YYYY-MM-DD or 'latest'). Optional pagination parameters include pageSize (default 10) and pageNumber (default 0). Returns block heights, timestamps, and related data for blocks within the specified date range, useful for historical analysis and time-based blockchain queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainName | Yes | The blockchain network to query (e.g., 'eth-mainnet', 'matic-mainnet', 'bsc-mainnet'). | |
| startDate | Yes | Start date for the query in YYYY-MM-DD format (e.g., '2023-01-01'). | |
| endDate | Yes | End date for the query in YYYY-MM-DD format or 'latest' for current date. | |
| pageSize | No | Number of block heights to return per page. Default is 10, maximum is 100. | |
| pageNumber | No | Page number for pagination, starting from 0. Default is 0. |