Skip to main content
Version: v. 1

Probe basefee

NAME​

probe-base-fee - Get the basefee of a block.

SYNOPSIS​

probe base-fee [options] [block]

DESCRIPTION​

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.

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​

  1. Get the basefee of the latest block:

    probe base-fee
  2. Get the basefee of the genesis block:

    probe base-fee 1

SEE ALSO​

probe, probe block, probe age