Get Block By Timestamp
get_block_by_timestampGet the block number closest to a given Unix timestamp (seconds).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainid | No | Numeric chain id (e.g. 1=Ethereum, 56=BNB, 137=Polygon). Defaults to server config. | |
| closest | No | Return closest block before or after. Default before. | |
| timestamp | Yes | Unix timestamp in seconds. |