DOCUMENTATION
cast find-block
NAME
cast-find-block - Get the block number closest to the provided timestamp.
SYNOPSIS
cast find-block
[options] timestamp
DESCRIPTION
Get the block number closest to the provided timestamp.
OPTIONS
RPC Options
--rpc-url
url
The RPC endpoint. Accepts a URL or an existing alias in the [rpc_endpoints] table, like mainnet
.
Environment: ETH_RPC_URL
Common Options
-h
--help
Prints help information.
EXAMPLES
- Get the block number closest to New Years 2021
cast find-block 1609459200