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_STIPENDper 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_ACCESSfor 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_ACCESSfor 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_COSTunder 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.