cast-base-fee - Get the basefee of a block.
cast base-fee [options] [block]
Get the basefee of a block.
The specified block can be a block number, or any of the tags: earliest, finalized, safe, latest or pending. Default to latest.
{{#include ../common/rpc-url-option.md}}
{{#include common-options.md}}
-
Get the basefee of the latest block:
cast base-fee
-
Get the basefee of the genesis block:
cast base-fee 1