DOCUMENTATION
import RpcUrlOption from "../../reference/common/rpc-url-optionx"; import CommonOptions from "./common-optionsx";
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
<RpcUrlOption /> <CommonOptions />EXAMPLES
- Get the block number closest to New Years 2021
cast find-block 1609459200