EIP-7981 · Last Call · Core · 2024-12-27
EIP-7981: Increase Access List Cost
Charges access lists an extra 64 gas per byte of data so they can no longer be combined with calldata to dodge the calldata floor price, cutting the worst-case block size by about 21%.
What problem does it solve?
EIP-7623 and its follow-up EIP-7976 put a floor on calldata pricing: a transaction that carries lots of data but does little computation pays a higher per-byte rate. That limits how large a block can get in bytes.
EIP-2930 access lists, however, are priced only for the storage warming they provide (2,400 gas per address, 1,900 per storage key), not for the bytes they add to the block. Their gas counts as "execution-side" gas, so a transaction can mix access lists with calldata in the right ratio to reach maximum block size without ever hitting the floor. EIP-7981 closes that loophole. The spec estimates it reduces the worst-case block size by about 21% with little impact on normal users.
How it works
- Count access list bytes: 20 bytes per address + 32 bytes per storage key.
access_list_data_cost = 64 × access_list_bytes, i.e. 1,280 gas per address and 2,048 gas per storage key. 64 gas/byte matches the EIP-7976 floor rate.- This cost is added as a flat surcharge outside the
max(…)between normal intrinsic+execution gas and the calldata floor. The existing EIP-2930 costs and the EIP-7976 floor formula are unchanged.
tx.gasUsed = (
21000
+ access_list_data_cost
+ max(
STANDARD_TOKEN_COST * tokens_in_calldata
+ execution_gas_used
+ is_create * (32000 + INITCODE_WORD_COST * words(calldata))
+ access_list_cost,
TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens_in_calldata,
)
)
A transaction whose gas limit is below tx.gasUsed computed with zero execution gas is invalid.
Sample code
Estimating the new surcharge for an access list (TypeScript):
type AccessListEntry = { address: string; storageKeys: string[] };
const BYTES_PER_ADDRESS = 20;
const BYTES_PER_KEY = 32;
const GAS_PER_BYTE = 64n;
function accessListDataCost(list: AccessListEntry[]): bigint {
const bytes = list.reduce(
(sum, e) => sum + BYTES_PER_ADDRESS + BYTES_PER_KEY * e.storageKeys.length, 0);
return BigInt(bytes) * GAS_PER_BYTE;
}
// One address with two keys: (20 + 64) * 64 = 5,376 extra gas
// on top of the EIP-2930 cost of 2,400 + 2 * 1,900 = 6,200.
console.log(accessListDataCost([{ address: "0x" + "11".repeat(20), storageKeys: ["0x01", "0x02"] }]));
Things to know
- Status: Last Call (deadline 2026-11-01 in the spec). It is listed as Scheduled for Inclusion in the Glamsterdam meta EIP (EIP-7773), which is still in Review. Activation requires a hard fork.
- Access lists become noticeably more expensive. A list that used to save a little gas by pre-warming slots may now cost more than it saves; wallets and SDKs that auto-attach access lists should re-check whether they help.
- Gas estimation in wallets and nodes must be updated.
- The spec's rationale text describes access list tokens as part of the floor calculation, while the formula and reference code add a separate flat surcharge; the formula is the normative part.