Get base fee

Get base fee on Values

Ethereum
Ethereum
Base
Base

Reads onchain state

Ready to run on Base

Returns the base fee of the block this plug executes in, in wei. Unlike the gas price, the base fee is set by the protocol and cannot be moved by the submitter. Reach for it to gate execution on a maximum fee with a predicate, so a scheduled plug waits for a cheap block, or to compute a gas cost against a strategy's expected profit.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

Takes nothing — it reads the caller's own position.

More plugs on Base

Bridge from Base · 6 plugs

More on Values · 6