Discussion topic for EIP-8358 Net Gas Metering for Account Changes
Update Log
- 2026-08-05: initial draft
Abstraction:
This EIP introduces net gas metering for account changes, mirroring the scheme EIP-2200 established for storage.
An account counts as changed once its balance or nonce differs from its value at the start of the transaction.
The value transfer cost of CALL and CALLCODE — CALL_VALUE, defined by EIP-8038 as ACCOUNT_WRITE + CALL_STIPEND — is replaced by CALL_VALUE_BASE_GAS, itemized as the stipend plus the EIP-7708 transfer log and consumed in full when charged, plus CLEAN_BALANCE_CHANGE_GAS for each modified account whose balance or nonce has not yet changed in the transaction; already-changed accounts add nothing.
When a transfer returns an account to its original balance while its nonce is unchanged, BALANCE_RESET_REFUND is added to the refund counter, a value-bearing call runs its callee with at least CALL_STIPEND gas. transfer between two unmodified accounts costs 8000 gas, matching the current effective cost; a transfer between two already-modified accounts costs only the base of 4000 gas.