explorer_get_block_by_timestamp
Retrieve the block number immediately before or after a Unix timestamp on a specified chain. Provide the chain ID, timestamp, and preferred direction to get the matching block.
Instructions
Find the block number closest to a given Unix timestamp (before or after).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Chain ID for the target network (required — no default for indexed data) | |
| closest | Yes | Find block before or after timestamp | |
| timestamp | Yes | Unix timestamp |