---
eip: 7863
label: EIP-7863
title: Block-level Warming
status: Draft
type: Standards Track
category: Core
created: 2025-01-15
official: https://eips.ethereum.org/EIPS/eip-7863
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7863.md
canonical: https://eips.huatuo.xyz/eip-7863/
lang: en
tldr: 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.
tags: [gas, state-access, evm, core]
---

# EIP-7863: Block-level Warming

> Warm addresses and storage keys over the duration of a block

**TL;DR:** 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](/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_addresses` and `block_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](/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):

```python
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):

```text
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](/eip-7928/) block-level access lists work at the same block granularity and are related reading.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7863
