cast basefee
NAME
cast-basefee - Get the basefee of a block.
SYNOPSIS
cast basefee
[options] block
DESCRIPTION
Get the basefee of a block.
OPTIONS
Query Options
-B
block
--block
block
The block height you want to query at.
Can be a block number, or any of the tags: earliest
, latest
or pending
.
RPC Options
--rpc-url
url
The RPC endpoint.
Environment: ETH_RPC_URL
Common Options
-h
--help
Prints help information.
EXAMPLES
-
Get the basefee of the latest block:
cast basefee latest
-
Get the basefee of the genesis block:
cast basefee 1