EIP-7863 · Draft · Core · 2025-01-15
EIP-7863: Block-level Warming
Proposes keeping addresses and storage slots warm for the rest of the block once any transaction touches them, so later transactions pay the cheap warm-access price instead of the cold one.
What problem does it solve?
Since EIP-2929 (Berlin), the first access to an account or storage slot in a transaction is "cold" and expensive (2,600 gas for an account, 2,100 for an SLOAD), while later accesses in the same transaction are "warm" (100 gas). The extra cold cost reflects the disk read a client may need.
But warmth resets for every transaction. If ten transactions in a block all touch the same popular DEX pool or token contract, each pays the cold price, even though the client already has that data cached after the first one. EIP-7863 extends warmth to the whole block, matching how clients actually cache state. The spec cites measured efficiency gains of around 5 % as of January 2025.
How it works
- At the start of each block, the client creates two empty sets:
block_level_accessed_addressesandblock_level_accessed_storage_keys. - Before each transaction, those sets are added to the transaction's pre-warmed addresses and keys, just like precompiles, the coinbase, or entries in an EIP-2930 access list.
- Within the transaction, the normal EIP-2929 rules apply: first access cold, later accesses warm.
- After the transaction, everything it accessed is added to the block-level sets.
- Warmth resets at the block boundary.
So the first transaction to touch a slot pays the cold cost; every later transaction in that block pays the warm cost. No transaction ever pays more than it does today.
Open questions in the draft:
- Whether a reverted transaction (or reverted sub-call) should still leave its accesses warm for later transactions.
- Whether to distribute the warming cost across all users of a slot instead of charging the first one ("first access warms for all").
- Whether to use a longer window, such as an epoch or a ring buffer of the last x blocks.
Sample code
Simplified block processing (pseudocode, after the spec):
def apply_body(block):
warm_addresses = set()
warm_keys = set()
for tx in block.transactions:
result = process_transaction(
tx,
preaccessed_addresses=set(warm_addresses) | precompiles | {block.coinbase},
preaccessed_storage_keys=set(warm_keys),
)
warm_addresses |= result.accessed_addresses
warm_keys |= result.accessed_storage_keys
Effect on a second transaction reading the same slot (EIP-2929 costs):
tx #1 SLOAD(pool, slot0) cold: 2100 gas
tx #2 SLOAD(pool, slot0) today: 2100 gas -> with EIP-7863: 100 gas
Things to know
- Status: Draft. It requires a hard fork. Existing contracts keep working, and gas costs can only go down.
- Gas used by a transaction now depends on its position in the block. A transaction estimated alone may use less gas when included after others that touch the same state, but never more than its standalone worst case.
- MEV: block builders can order transactions to capture warming benefits for themselves, and searchers can backrun transactions that warmed specific slots.
- Memory use stays bounded because the number of distinct warm entries is limited by the block gas limit.
- EIP-7928 block-level access lists work at the same block granularity and are related reading.