{"eip":7863,"title":"Block-level Warming","description":"Warm addresses and storage keys over the duration of a block","authors":["Toni Wahrstätter (@nerolation)","Jochem Brouwer (@jochem-brouwer)","Alex Stokes (@ralexstokes)","Ansgar Dietrichs (@adietrichs)","Yoav Weiss (@yoavw)","Alex Forshtat (@forshtat)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-01-15","discussionsTo":"https://ethereum-magicians.org/t/eip-7863-block-level-warming/22572","repo":"EIPs","label":"EIP-7863","officialUrl":"https://eips.ethereum.org/EIPS/eip-7863","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7863.md","url":"https://eips.huatuo.xyz/eip-7863/","tldr":{"en":"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.","ja":"いずれかのトランザクションがアドレスやストレージスロットに触れたら、そのブロックの残りの間はそれらを warm のままにし、後続のトランザクションが cold ではなく安価な warm アクセスの価格を支払うようにする提案。","ko":"어떤 트랜잭션이 주소나 스토리지 슬롯을 건드리면 블록이 끝날 때까지 그것들을 warm 상태로 유지해, 이후 트랜잭션이 cold 가격이 아니라 저렴한 warm 접근 가격을 내게 하자는 제안.","zh":"提议在任一交易访问某个地址或存储槽后，让它们在区块的剩余部分保持 warm 状态，这样后续交易只需支付便宜的 warm 访问价格，而不是 cold 价格。"},"tags":["gas","state-access","evm","core"],"explainers":{"en":{"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"],"related":[2929,2930,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7863/","markdown":"## What problem does it solve?\n\nSince [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.\n\nBut 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.\n\n## How it works\n\n- At the start of each block, the client creates two empty sets: `block_level_accessed_addresses` and `block_level_accessed_storage_keys`.\n- 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.\n- Within the transaction, the normal EIP-2929 rules apply: first access cold, later accesses warm.\n- After the transaction, everything it accessed is added to the block-level sets.\n- Warmth resets at the block boundary.\n\nSo 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.\n\nOpen questions in the draft:\n\n- Whether a reverted transaction (or reverted sub-call) should still leave its accesses warm for later transactions.\n- Whether to distribute the warming cost across all users of a slot instead of charging the first one (\"first access warms for all\").\n- Whether to use a longer window, such as an epoch or a ring buffer of the last *x* blocks.\n\n## Sample code\n\nSimplified block processing (pseudocode, after the spec):\n\n```python\ndef apply_body(block):\n    warm_addresses = set()\n    warm_keys = set()\n    for tx in block.transactions:\n        result = process_transaction(\n            tx,\n            preaccessed_addresses=set(warm_addresses) | precompiles | {block.coinbase},\n            preaccessed_storage_keys=set(warm_keys),\n        )\n        warm_addresses |= result.accessed_addresses\n        warm_keys |= result.accessed_storage_keys\n```\n\nEffect on a second transaction reading the same slot (EIP-2929 costs):\n\n```text\ntx #1  SLOAD(pool, slot0)   cold: 2100 gas\ntx #2  SLOAD(pool, slot0)   today: 2100 gas  -\u003e  with EIP-7863: 100 gas\n```\n\n## Things to know\n\n- **Status: Draft.** It requires a hard fork. Existing contracts keep working, and gas costs can only go down.\n- 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.\n- MEV: block builders can order transactions to capture warming benefits for themselves, and searchers can backrun transactions that warmed specific slots.\n- Memory use stays bounded because the number of distinct warm entries is limited by the block gas limit.\n- [EIP-7928](/eip-7928/) block-level access lists work at the same block granularity and are related reading.\n"},"ja":{"lang":"ja","tldr":"いずれかのトランザクションがアドレスやストレージスロットに触れたら、そのブロックの残りの間はそれらを warm のままにし、後続のトランザクションが cold ではなく安価な warm アクセスの価格を支払うようにする提案。","tags":["gas","state-access","evm","core"],"related":[2929,2930,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7863/","markdown":"## 何を解決するのか\n\n[EIP-2929](/eip-2929/)（Berlin）以来、トランザクション内でのアカウントやストレージスロットへの最初のアクセスは「cold」で高価（アカウントは 2,600 gas、`SLOAD` は 2,100 gas）です。同じトランザクション内の以降のアクセスは「warm」（100 gas）です。cold の追加コストは、クライアントが必要とするかもしれないディスク読み取りを反映しています。\n\nしかし warm の状態はトランザクションごとにリセットされます。ブロック内の 10 件のトランザクションがすべて同じ人気の DEX プールやトークンコントラクトに触れる場合、最初の 1 件の後にはクライアントがそのデータをすでにキャッシュしているにもかかわらず、各トランザクションが cold の価格を支払います。EIP-7863 は warm の状態をブロック全体に拡張し、クライアントが実際に状態をキャッシュする方法に合わせます。仕様は、2025 年 1 月時点で測定された約 5 % の効率向上を挙げています。\n\n## 仕組み\n\n- 各ブロックの開始時に、クライアントは 2 つの空の集合を作ります: `block_level_accessed_addresses` と `block_level_accessed_storage_keys`。\n- 各トランザクションの前に、これらの集合が、プリコンパイル、coinbase、[EIP-2930](/eip-2930/) のアクセスリストのエントリと同様に、そのトランザクションの事前に warm にされたアドレスとキーに追加されます。\n- トランザクション内では、通常の EIP-2929 のルールが適用されます: 最初のアクセスは cold、以降のアクセスは warm。\n- トランザクションの後、そのトランザクションがアクセスしたものはすべてブロックレベルの集合に追加されます。\n- warm の状態はブロックの境界でリセットされます。\n\nつまり、あるスロットに最初に触れたトランザクションは cold のコストを支払い、そのブロック内の以降のトランザクションはすべて warm のコストを支払います。現在より多く支払うトランザクションは存在しません。\n\nドラフトにある未解決の問題:\n\n- revert されたトランザクション（または revert されたサブコール）が、後続のトランザクションのために、そのアクセスを warm のまま残すべきかどうか。\n- 最初の 1 人に課金するのではなく、warm にするコストをそのスロットのすべてのユーザーに分配するかどうか（「最初のアクセスが全員のために warm にする」）。\n- エポックや直近 *x* ブロックのリングバッファのような、より長いウィンドウを使うかどうか。\n\n## サンプルコード\n\n簡略化したブロック処理（擬似コード、仕様に基づく）:\n\n```python\ndef apply_body(block):\n    warm_addresses = set()\n    warm_keys = set()\n    for tx in block.transactions:\n        result = process_transaction(\n            tx,\n            preaccessed_addresses=set(warm_addresses) | precompiles | {block.coinbase},\n            preaccessed_storage_keys=set(warm_keys),\n        )\n        warm_addresses |= result.accessed_addresses\n        warm_keys |= result.accessed_storage_keys\n```\n\n同じスロットを読む 2 番目のトランザクションへの影響（EIP-2929 のコスト）:\n\n```text\ntx #1  SLOAD(pool, slot0)   cold: 2100 gas\ntx #2  SLOAD(pool, slot0)   today: 2100 gas  -\u003e  with EIP-7863: 100 gas\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** ハードフォークが必要です。既存のコントラクトは引き続き動作し、gas コストは下がることはあっても上がることはありません。\n- トランザクションが使う gas は、ブロック内での位置に依存するようになります。単独で見積もられたトランザクションは、同じ状態に触れる他のトランザクションの後に含まれると、より少ない gas で済む可能性がありますが、単独時の最悪ケースを超えることはありません。\n- MEV: ブロックビルダーは、warm 化の恩恵を自分で得られるようにトランザクションを並べ替えることができ、サーチャーは特定のスロットを warm にしたトランザクションをバックランできます。\n- 異なる warm エントリの数がブロックの gas 上限によって制限されるため、メモリ使用量は上限内に収まります。\n- [EIP-7928](/eip-7928/) のブロックレベルのアクセスリストは同じブロック粒度で動作し、関連する資料です。\n"},"ko":{"lang":"ko","tldr":"어떤 트랜잭션이 주소나 스토리지 슬롯을 건드리면 블록이 끝날 때까지 그것들을 warm 상태로 유지해, 이후 트랜잭션이 cold 가격이 아니라 저렴한 warm 접근 가격을 내게 하자는 제안.","tags":["gas","state-access","evm","core"],"related":[2929,2930,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7863/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-2929](/eip-2929/)(Berlin) 이후 트랜잭션에서 계정이나 스토리지 슬롯에 처음 접근하는 것은 \"cold\"이고 비쌉니다(계정 2,600 gas, `SLOAD` 2,100 gas). 같은 트랜잭션 안의 이후 접근은 \"warm\"(100 gas)입니다. cold의 추가 비용은 클라이언트가 필요로 할 수 있는 디스크 읽기를 반영합니다.\n\n하지만 warm 상태는 트랜잭션마다 초기화됩니다. 한 블록의 트랜잭션 10개가 모두 같은 인기 DEX 풀이나 토큰 컨트랙트를 건드리면, 첫 번째 이후에는 클라이언트가 이미 그 데이터를 캐시해 두었는데도 각 트랜잭션이 cold 가격을 냅니다. EIP-7863은 warm 상태를 블록 전체로 확장해, 클라이언트가 실제로 상태를 캐시하는 방식에 맞춥니다. 스펙은 2025년 1월 기준으로 측정된 약 5 %의 효율 향상을 인용합니다.\n\n## 어떻게 동작하나요?\n\n- 각 블록이 시작될 때 클라이언트는 빈 집합 두 개를 만듭니다. `block_level_accessed_addresses`와 `block_level_accessed_storage_keys`입니다.\n- 각 트랜잭션 전에, 이 집합들이 프리컴파일, coinbase, [EIP-2930](/eip-2930/) 액세스 리스트 항목처럼 해당 트랜잭션의 미리 warm된 주소와 키에 추가됩니다.\n- 트랜잭션 안에서는 기존 EIP-2929 규칙이 적용됩니다. 처음 접근은 cold, 이후 접근은 warm입니다.\n- 트랜잭션이 끝나면 그 트랜잭션이 접근한 모든 것이 블록 수준 집합에 추가됩니다.\n- warm 상태는 블록 경계에서 초기화됩니다.\n\n따라서 슬롯을 처음 건드린 트랜잭션은 cold 비용을 내고, 그 블록의 이후 모든 트랜잭션은 warm 비용을 냅니다. 지금보다 더 많이 내는 트랜잭션은 없습니다.\n\n초안에서 아직 열려 있는 질문:\n\n- revert된 트랜잭션(또는 revert된 서브콜)이 이후 트랜잭션을 위해 자신의 접근 기록을 warm으로 남겨야 하는지.\n- 첫 번째 사용자에게만 요금을 매기는 대신, warm으로 만드는 비용을 그 슬롯의 모든 사용자에게 분산할지(\"첫 접근이 모두를 위해 warm\").\n- 에폭이나 최근 *x*개 블록의 링 버퍼처럼 더 긴 윈도우를 쓸지.\n\n## 샘플 코드\n\n단순화한 블록 처리(의사 코드, 스펙 기준):\n\n```python\ndef apply_body(block):\n    warm_addresses = set()\n    warm_keys = set()\n    for tx in block.transactions:\n        result = process_transaction(\n            tx,\n            preaccessed_addresses=set(warm_addresses) | precompiles | {block.coinbase},\n            preaccessed_storage_keys=set(warm_keys),\n        )\n        warm_addresses |= result.accessed_addresses\n        warm_keys |= result.accessed_storage_keys\n```\n\n같은 슬롯을 읽는 두 번째 트랜잭션에 미치는 영향(EIP-2929 비용):\n\n```text\ntx #1  SLOAD(pool, slot0)   cold: 2100 gas\ntx #2  SLOAD(pool, slot0)   today: 2100 gas  -\u003e  with EIP-7863: 100 gas\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 하드 포크가 필요합니다. 기존 컨트랙트는 계속 동작하며 gas 비용은 줄어들 수만 있습니다.\n- 트랜잭션이 사용하는 gas는 이제 블록 안에서의 위치에 따라 달라집니다. 단독으로 추정한 트랜잭션이 같은 상태를 건드리는 다른 트랜잭션 뒤에 포함되면 gas를 더 적게 쓸 수 있지만, 단독일 때의 최악의 경우를 넘지는 않습니다.\n- MEV: 블록 빌더는 warm 이득을 자신이 가져가도록 트랜잭션 순서를 정할 수 있고, 서처는 특정 슬롯을 warm으로 만든 트랜잭션을 백런할 수 있습니다.\n- 서로 다른 warm 항목의 수가 블록 gas 한도로 제한되므로 메모리 사용량은 유한하게 유지됩니다.\n- [EIP-7928](/eip-7928/) 블록 수준 액세스 리스트는 같은 블록 단위로 동작하며 함께 읽어 볼 만한 자료입니다.\n"},"zh":{"lang":"zh","tldr":"提议在任一交易访问某个地址或存储槽后，让它们在区块的剩余部分保持 warm 状态，这样后续交易只需支付便宜的 warm 访问价格，而不是 cold 价格。","tags":["gas","state-access","evm","core"],"related":[2929,2930,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7863/","markdown":"## 它解决什么问题？\n\n自 [EIP-2929](/eip-2929/)（Berlin）起，交易中第一次访问某个账户或存储槽是\"cold\"的，费用高昂（账户 2,600 gas，`SLOAD` 2,100 gas），而同一交易中之后的访问是\"warm\"的（100 gas）。额外的 cold 成本反映了客户端可能需要的磁盘读取。\n\n但 warm 状态在每笔交易后都会重置。如果一个区块中有十笔交易都访问同一个热门 DEX 池或代币合约，每一笔都要支付 cold 价格，尽管客户端在第一笔之后就已经缓存了这些数据。EIP-7863 把 warm 状态扩展到整个区块，与客户端实际缓存状态的方式相一致。规范引用了截至 2025 年 1 月测得的约 5% 的效率提升。\n\n## 它如何运作\n\n- 在每个区块开始时，客户端创建两个空集合：`block_level_accessed_addresses` 和 `block_level_accessed_storage_keys`。\n- 在每笔交易之前，这两个集合会被加入该交易预先 warm 的地址和键中，就像预编译合约、coinbase 或 [EIP-2930](/eip-2930/) 访问列表中的条目一样。\n- 在交易内部，适用通常的 EIP-2929 规则：第一次访问是 cold，之后的访问是 warm。\n- 交易结束后，它访问过的所有内容都被加入区块级集合。\n- warm 状态在区块边界处重置。\n\n因此，第一个访问某个槽的交易支付 cold 成本；该区块中之后的每笔交易都支付 warm 成本。没有任何交易需要支付比现在更多的费用。\n\n草案中尚未解决的问题：\n\n- 被 revert 的交易（或被 revert 的子调用）是否仍应让其访问记录对后续交易保持 warm。\n- 是否应把 warm 化的成本分摊给该槽的所有使用者，而不是由第一个使用者承担（\"第一次访问为所有人 warm\"）。\n- 是否使用更长的窗口，例如一个 epoch，或最近 *x* 个区块的环形缓冲区。\n\n## 示例代码\n\n简化的区块处理（伪代码，依据规范）：\n\n```python\ndef apply_body(block):\n    warm_addresses = set()\n    warm_keys = set()\n    for tx in block.transactions:\n        result = process_transaction(\n            tx,\n            preaccessed_addresses=set(warm_addresses) | precompiles | {block.coinbase},\n            preaccessed_storage_keys=set(warm_keys),\n        )\n        warm_addresses |= result.accessed_addresses\n        warm_keys |= result.accessed_storage_keys\n```\n\n对第二笔读取同一槽的交易的影响（EIP-2929 的成本）：\n\n```text\ntx #1  SLOAD(pool, slot0)   cold: 2100 gas\ntx #2  SLOAD(pool, slot0)   today: 2100 gas  -\u003e  with EIP-7863: 100 gas\n```\n\n## 需要注意\n\n- **状态：Draft。** 它需要硬分叉。现有合约继续正常工作，gas 成本只会下降。\n- 一笔交易消耗的 gas 现在取决于它在区块中的位置。单独估算的交易，如果排在访问了同一状态的其他交易之后，可能会消耗更少的 gas，但绝不会超过其单独运行时的最坏情况。\n- MEV：区块构建者可以通过排序交易为自己捕获 warm 化的收益，searcher 也可以对那些让特定槽 warm 的交易进行 backrun。\n- 内存使用保持有界，因为不同的 warm 条目数量受区块 gas 上限限制。\n- [EIP-7928](/eip-7928/) 的区块级访问列表在同样的区块粒度上工作，值得一并阅读。\n"}}}
