Skip to main content

Module eip8038

Module eip8038 

Source
Expand description

EIP-8038: State-Access Gas Cost Update

Increases the gas cost of state-access operations to reflect Ethereum’s larger state. The values below are the parameters proposed in ethereum/EIPs#11802 (still a draft — treat as preliminary), superseding the earlier previous_value + 1 placeholders.

Active alongside EIP-7904 and EIP-8037 starting at the Amsterdam hardfork.

Constants§

ACCESS_LIST_ADDRESS_COST
Gas charged per address included in a transaction’s access list (was 2,400 pre-EIP-8038). Derived per the spec as COLD_ACCOUNT_ACCESS.
ACCESS_LIST_STORAGE_KEY_COST
Gas charged per storage key included in a transaction’s access list (was 1,900 pre-EIP-8038). Derived per the spec as COLD_STORAGE_ACCESS.
ACCOUNT_WRITE
Surcharge for writing to an account that changes one account leaf value for the first time (was 6,700 pre-EIP-8038).
CALL_VALUE
CALL value transfer cost: ACCOUNT_WRITE + CALL_STIPEND per the EIP.
COLD_ACCOUNT_ACCESS
Cold touch of an account (was 2,600 pre-EIP-8038).
COLD_ACCOUNT_ACCESS_ADDITIONAL
Cold premium on top of WARM_ACCESS for account access.
COLD_STORAGE_ACCESS
Cold touch of a storage slot (was 2,100 pre-EIP-8038).
COLD_STORAGE_ACCESS_ADDITIONAL
Cold premium on top of WARM_ACCESS for storage access.
CREATE_ACCESS
State access cost for contract deployment (was 7,000 pre-EIP-8038).
EIP7702_AUTH_TUPLE_BYTES
Calldata bytes charged for one EIP-7702 authorization tuple (execution-specs AUTH_TUPLE_BYTES): chain id, authority address, nonce, signature parity, and the two signature scalars. Charged at the calldata floor rate.
EIP7702_ECRECOVER_COST
ecRecover precompile base cost, charged once per EIP-7702 authorization to recover the authority.
EIP7702_PER_EMPTY_ACCOUNT_REGULAR
Regular-gas portion of EIP-7702 PER_EMPTY_ACCOUNT_COST under EIP-8038.
STORAGE_CLEAR_REFUND
Refund for clearing a storage slot (was 4,800 pre-EIP-8038).
STORAGE_WRITE
Surcharge for writing to a storage slot that changes its value for the first time (was 2,800 pre-EIP-8038).
TX_DATA_TOKEN_FLOOR
Calldata floor rate per token under EIP-7976 (Amsterdam).
WARM_ACCESS
Touch of an already-warm account or storage slot. Unchanged by EIP-8038.