Skip to main content

Module eip2780

Module eip2780 

Source
Expand description

EIP-2780: Reduce intrinsic transaction gas

Replaces the legacy 21,000 intrinsic base with a decomposed model that prices a reduced sender base plus additional to- and value-based charges. Composes with EIP-8037 (state gas) and EIP-8038 (state-access costs) starting at the Amsterdam hardfork.

Constantsยง

TRANSFER_LOG_COST
Regular gas cost of the EIP-7708 transfer log emitted for every nonzero-value transfer to a different account.
TX_BASE_COST
Reduced intrinsic base cost charged to tx.sender (execution-specs TX_BASE).
TX_VALUE_COST
Additional intrinsic regular-gas charge for a value-bearing (non-create, non-self) transaction (execution-specs TX_VALUE_COST), on top of TRANSFER_LOG_COST.