DOCUMENTATION
cast block-number
NAME
cast-block-number - Get the latest block number.
SYNOPSIS
cast block-number
[options]
DESCRIPTION
Get the latest block number.
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 latest block number:
cast block-number