{"eip":7557,"title":"Block-level Warming with fair cost savings","description":"Block-level warming of addresses and slots with access lists","authors":["Yoav Weiss (@yoavw)","Alex Forshtat (@forshtat)","Dror Tirosh (@drortirosh)","Shahaf Nacson (@shahafn)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2023-10-01","discussionsTo":"https://ethereum-magicians.org/t/eip-7557-block-level-warming/16642","repo":"EIPs","label":"EIP-7557","officialUrl":"https://eips.ethereum.org/EIPS/eip-7557","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7557.md","url":"https://eips.huatuo.xyz/eip-7557/","tldr":{"en":"Proposed that when several transactions in a block access the same cold account or storage slot, the cold-access cost is charged once and the excess base fee and priority fee are refunded to senders at the end of the block.","ja":"ブロック内の複数のトランザクションが同じコールドなアカウントやストレージスロットにアクセスした場合、コールドアクセスのコストを 1 回だけ課し、超過分の base fee と priority fee をブロックの最後に送信者へ返金することを提案している。","ko":"한 블록의 여러 트랜잭션이 같은 콜드 계정이나 스토리지 슬롯에 접근하면 콜드 접근 비용을 한 번만 부과하고, 초과분의 base fee와 priority fee를 블록 끝에서 발신자에게 환불하도록 제안한다.","zh":"提议当一个区块中的多笔交易访问同一个冷账户或冷存储槽时，冷访问成本只收取一次，并在区块结束时把多收的 base fee 和优先费退还给发送者。"},"tags":["gas","access-lists","core","fees","state-access"],"explainers":{"en":{"lang":"en","tldr":"Proposed that when several transactions in a block access the same cold account or storage slot, the cold-access cost is charged once and the excess base fee and priority fee are refunded to senders at the end of the block.","tags":["gas","access-lists","core","fees","state-access"],"related":[2929,2930,7863,7928,6800],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7557/","markdown":"## What problem does it solve?\n\nSince [EIP-2929](/eip-2929/), the first (\"cold\") access to an account or storage slot in a transaction costs much more than later (\"warm\") accesses, because the node may have to fetch it from disk. But warmth is tracked per transaction. If 50 transactions in one block call the same popular contract, each pays the full cold price, even though the node loads it once per block.\n\nThe authors expected this mismatch to grow: with stateless/verkle designs such as [EIP-6800](/eip-6800/), loading contract code would be charged per chunk and become much more expensive, and with account abstraction many transactions would load the same shared wallet implementation. Overcharging those transactions burns base fee needlessly and hands block producers extra priority fees.\n\n## How it works\n\nTransactions keep paying exactly as today during execution; nothing a contract can observe changes. The difference is a settlement step at the end of the block.\n\n1. **Collect.** The builder scans every transaction's [EIP-2930](/eip-2930/) `accessList` and groups, per address and per slot, the senders that declared it and the priority fee each paid.\n2. **Refund the burn.** For an item shared by *N* transactions, the cold cost is burned only once overall: each sender gets back `(N-1)/N` of the cold-access base fee, subject to a floor so that each entry still costs at least `MIN_ACCESS_LIST_ENTRY_COST = 32` gas (to stop DoS via huge shared access lists).\n3. **Refund the tip.** The block producer keeps one cold-access priority fee, at the highest tip rate among the sharers. The rest of the priority fees collected for that item is returned to senders in proportion to what each contributed.\n4. **Pay out.** A new system-level \"cost redistribution\" operation, modelled on [EIP-4895](/eip-4895/) withdrawals, runs after all transactions: it credits each sender and debits the coinbase for its share. Balances change only from the next block on, so earlier transactions in the block are never affected by later ones.\n\nTo keep access lists from bloating history, the spec also suggests a `block_access_list` in the execution payload, with each transaction referencing shared entries by a 2-byte index.\n\n## Sample code\n\nSimplified per-item base-fee refund (illustrative; applies the 32-gas floor as the spec text describes it):\n\n```ts\nconst COLD_SLOAD_COST = 2100;\nconst MIN_ACCESS_LIST_ENTRY_COST = 32;\n\n// senders: every tx sender that listed this storage slot in its access list\nfunction burnRefunds(senders: string[], baseFeePerGas: bigint): Map\u003cstring, bigint\u003e {\n  const n = senders.length;\n  const refunds = new Map\u003cstring, bigint\u003e();\n  if (n \u003c 2) return refunds;                     // nothing shared, nothing refunded\n  const share = Math.floor((COLD_SLOAD_COST * (n - 1)) / n);    // (N-1)/N of the cold cost\n  const gas = Math.min(share, COLD_SLOAD_COST - MIN_ACCESS_LIST_ENTRY_COST); // each sender still pays \u003e= 32 gas\n  for (const s of senders) {\n    refunds.set(s, (refunds.get(s) ?? 0n) + BigInt(gas) * baseFeePerGas);\n  }\n  return refunds;\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**. It was never scheduled for a network upgrade.\n- Only items declared in a transaction's access list take part; undeclared accesses are charged as usual.\n- Some details are loose in the spec. For example, its pseudocode applies the 32-gas minimum differently from the prose, and it says there are no block structure changes yet later proposes a `block_access_list` field and a new system operation. Read it as a design sketch, not a finished spec.\n- [EIP-7863](/eip-7863/) is an alternative block-level warming proposal that does not redistribute savings between senders and the builder in this way. The separate idea of block-level access lists for parallel execution is pursued in [EIP-7928](/eip-7928/).\n"},"ja":{"lang":"ja","tldr":"ブロック内の複数のトランザクションが同じコールドなアカウントやストレージスロットにアクセスした場合、コールドアクセスのコストを 1 回だけ課し、超過分の base fee と priority fee をブロックの最後に送信者へ返金することを提案している。","tags":["gas","access-lists","core","fees","state-access"],"related":[2929,2930,7863,7928,6800],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7557/","markdown":"## 何を解決するのか\n\n[EIP-2929](/eip-2929/) 以降、トランザクション内でアカウントやストレージスロットに初めてアクセスする（「コールド」）コストは、その後のアクセス（「ウォーム」）よりはるかに高くなりました。ノードがディスクから取得する必要があるかもしれないからです。しかしウォームかどうかはトランザクションごとに追跡されます。1 つのブロック内の 50 件のトランザクションが同じ人気コントラクトを呼ぶと、ノードがブロックごとに 1 回だけロードするにもかかわらず、それぞれが完全なコールド価格を支払います。\n\n著者らは、このミスマッチが拡大すると見ていました。[EIP-6800](/eip-6800/) のようなステートレス／Verkle 設計では、コントラクトコードのロードがチャンク単位で課金されてはるかに高価になり、アカウント抽象化では多くのトランザクションが同じ共有ウォレット実装をロードすることになります。それらのトランザクションに過剰に課金すると、base fee が無駄にバーンされ、ブロック生産者に余分な priority fee が渡ってしまいます。\n\n## 仕組み\n\n実行中、トランザクションは今と全く同じように支払いを続け、コントラクトから観測できるものは何も変わりません。違いは、ブロックの最後にある精算ステップです。\n\n1. **収集。** ビルダーは、すべてのトランザクションの [EIP-2930](/eip-2930/) `accessList` をスキャンし、アドレスごと、スロットごとに、それを宣言した送信者と各自が支払った priority fee をまとめます。\n2. **バーンの返金。** *N* 件のトランザクションで共有される項目については、コールドのコストは全体で 1 回だけバーンされます。各送信者はコールドアクセスの base fee の `(N-1)/N` を受け取りますが、各エントリーが最低でも `MIN_ACCESS_LIST_ENTRY_COST = 32` ガスかかるよう下限が設けられています（巨大な共有アクセスリストによる DoS を防ぐため）。\n3. **チップの返金。** ブロック生産者は、共有者の中で最も高いチップ率で、コールドアクセス 1 回分の priority fee を保持します。その項目について集められた残りの priority fee は、各自の負担額に比例して送信者に返されます。\n4. **支払い。** [EIP-4895](/eip-4895/) の引き出しをモデルにした、新しいシステムレベルの「コスト再分配」オペレーションが、すべてのトランザクションの後に実行されます。各送信者に入金し、コインベースからその分を差し引きます。残高が変わるのは次のブロック以降だけなので、ブロック内の先行するトランザクションが後続のものに影響されることはありません。\n\nアクセスリストが履歴を肥大化させないよう、仕様は、実行ペイロードに `block_access_list` を置き、各トランザクションが 2 バイトのインデックスで共有エントリーを参照することも提案しています。\n\n## サンプルコード\n\n項目ごとの base fee 返金を簡略化したもの（説明用。仕様の文章の説明どおりに 32 ガスの下限を適用）:\n\n```ts\nconst COLD_SLOAD_COST = 2100;\nconst MIN_ACCESS_LIST_ENTRY_COST = 32;\n\n// senders: every tx sender that listed this storage slot in its access list\nfunction burnRefunds(senders: string[], baseFeePerGas: bigint): Map\u003cstring, bigint\u003e {\n  const n = senders.length;\n  const refunds = new Map\u003cstring, bigint\u003e();\n  if (n \u003c 2) return refunds;                     // nothing shared, nothing refunded\n  const share = Math.floor((COLD_SLOAD_COST * (n - 1)) / n);    // (N-1)/N of the cold cost\n  const gas = Math.min(share, COLD_SLOAD_COST - MIN_ACCESS_LIST_ENTRY_COST); // each sender still pays \u003e= 32 gas\n  for (const s of senders) {\n    refunds.set(s, (refunds.get(s) ?? 0n) + BigInt(gas) * baseFeePerGas);\n  }\n  return refunds;\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。ネットワークアップグレードに予定されたことはありません。\n- 参加するのは、トランザクションのアクセスリストで宣言された項目だけです。宣言されていないアクセスは通常どおり課金されます。\n- 仕様にはあいまいな点があります。たとえば、擬似コードは 32 ガスの最小値を文章とは異なる形で適用しており、ブロック構造の変更はまだないと述べながら、後で `block_access_list` フィールドと新しいシステムオペレーションを提案しています。完成した仕様ではなく、設計のスケッチとして読んでください。\n- [EIP-7863](/eip-7863/) は、ブロックレベルのウォーミングに関する別の提案で、このような形で送信者とビルダーの間で節約分を再分配することはしません。並列実行のためのブロックレベルのアクセスリストという別のアイデアは、[EIP-7928](/eip-7928/) で追求されています。\n"},"ko":{"lang":"ko","tldr":"한 블록의 여러 트랜잭션이 같은 콜드 계정이나 스토리지 슬롯에 접근하면 콜드 접근 비용을 한 번만 부과하고, 초과분의 base fee와 priority fee를 블록 끝에서 발신자에게 환불하도록 제안한다.","tags":["gas","access-lists","core","fees","state-access"],"related":[2929,2930,7863,7928,6800],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7557/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-2929](/eip-2929/) 이후, 트랜잭션에서 계정이나 스토리지 슬롯에 처음 접근하는 비용(\"콜드\")은 이후 접근(\"웜\")보다 훨씬 비쌉니다. 노드가 디스크에서 가져와야 할 수 있기 때문입니다. 하지만 웜 여부는 트랜잭션별로 추적됩니다. 한 블록의 트랜잭션 50개가 같은 인기 컨트랙트를 호출하면, 노드는 블록당 한 번만 로드하는데도 각각 전체 콜드 가격을 냅니다.\n\n저자들은 이 불일치가 더 커질 것으로 예상했습니다. [EIP-6800](/eip-6800/) 같은 스테이트리스/verkle 설계에서는 컨트랙트 코드 로딩이 청크 단위로 과금되어 훨씬 비싸지고, 계정 추상화에서는 많은 트랜잭션이 같은 공유 지갑 구현을 로드하게 됩니다. 이런 트랜잭션에 과다 청구하면 base fee가 불필요하게 소각되고 블록 생산자에게 추가 priority fee가 돌아갑니다.\n\n## 어떻게 동작하나요?\n\n실행 중에는 트랜잭션이 지금과 똑같이 비용을 내며, 컨트랙트가 관찰할 수 있는 것은 아무것도 달라지지 않습니다. 차이는 블록 끝의 정산 단계에 있습니다.\n\n1. **수집.** 빌더는 모든 트랜잭션의 [EIP-2930](/eip-2930/) `accessList`를 훑어, 주소별·슬롯별로 이를 선언한 발신자와 각자가 지불한 priority fee를 묶습니다.\n2. **소각분 환불.** *N*개의 트랜잭션이 공유하는 항목은 콜드 비용이 전체적으로 한 번만 소각됩니다. 각 발신자는 콜드 접근 base fee의 `(N-1)/N`을 돌려받으며, 각 항목이 최소 `MIN_ACCESS_LIST_ENTRY_COST = 32` 가스는 들도록 하한이 있습니다(거대한 공유 액세스 리스트를 이용한 DoS를 막기 위해).\n3. **팁 환불.** 블록 생산자는 공유자 중 가장 높은 팁 비율로 콜드 접근 priority fee 한 번분을 보유합니다. 그 항목에 대해 걷은 나머지 priority fee는 각자의 기여분에 비례해 발신자에게 돌려줍니다.\n4. **지급.** [EIP-4895](/eip-4895/) 출금을 본뜬 새로운 시스템 수준의 \"비용 재분배\" 연산이 모든 트랜잭션 이후에 실행됩니다. 각 발신자에게 입금하고 그 몫만큼 coinbase에서 차감합니다. 잔액은 다음 블록부터만 바뀌므로, 블록 안의 앞선 트랜잭션이 뒤의 트랜잭션에 영향받는 일은 없습니다.\n\n액세스 리스트가 히스토리를 부풀리지 않도록, 명세는 실행 페이로드에 `block_access_list`를 두고 각 트랜잭션이 2바이트 인덱스로 공유 항목을 참조하는 방식도 제안합니다.\n\n## 샘플 코드\n\n항목별 base fee 환불을 단순화한 코드(설명용, 명세 본문의 설명대로 32 가스 하한 적용):\n\n```ts\nconst COLD_SLOAD_COST = 2100;\nconst MIN_ACCESS_LIST_ENTRY_COST = 32;\n\n// senders: every tx sender that listed this storage slot in its access list\nfunction burnRefunds(senders: string[], baseFeePerGas: bigint): Map\u003cstring, bigint\u003e {\n  const n = senders.length;\n  const refunds = new Map\u003cstring, bigint\u003e();\n  if (n \u003c 2) return refunds;                     // nothing shared, nothing refunded\n  const share = Math.floor((COLD_SLOAD_COST * (n - 1)) / n);    // (N-1)/N of the cold cost\n  const gas = Math.min(share, COLD_SLOAD_COST - MIN_ACCESS_LIST_ENTRY_COST); // each sender still pays \u003e= 32 gas\n  for (const s of senders) {\n    refunds.set(s, (refunds.get(s) ?? 0n) + BigInt(gas) * baseFeePerGas);\n  }\n  return refunds;\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 네트워크 업그레이드에 예정된 적이 없습니다.\n- 트랜잭션의 액세스 리스트에 선언된 항목만 대상이 되며, 선언되지 않은 접근은 평소처럼 과금됩니다.\n- 명세에는 느슨한 부분이 있습니다. 예를 들어 의사 코드는 32 가스 최소값을 본문과 다르게 적용하며, 블록 구조 변경이 아직 없다고 하면서 나중에 `block_access_list` 필드와 새 시스템 연산을 제안합니다. 완성된 명세가 아니라 설계 스케치로 읽으세요.\n- [EIP-7863](/eip-7863/)은 이런 방식으로 발신자와 빌더 사이에 절감분을 재분배하지 않는, 블록 수준 워밍에 대한 다른 제안입니다. 병렬 실행을 위한 블록 수준 액세스 리스트라는 별개의 아이디어는 [EIP-7928](/eip-7928/)에서 추진됩니다.\n"},"zh":{"lang":"zh","tldr":"提议当一个区块中的多笔交易访问同一个冷账户或冷存储槽时，冷访问成本只收取一次，并在区块结束时把多收的 base fee 和优先费退还给发送者。","tags":["gas","access-lists","core","fees","state-access"],"related":[2929,2930,7863,7928,6800],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7557/","markdown":"## 它解决什么问题？\n\n自 [EIP-2929](/eip-2929/) 起，交易中对某个账户或存储槽的首次（\"冷\"）访问比之后的（\"热\"）访问昂贵得多，因为节点可能需要从磁盘读取。但热状态是按交易追踪的。如果一个区块中的 50 笔交易调用同一个热门合约，每笔都要支付完整的冷访问价格，尽管节点每个区块只加载一次。\n\n作者预计这种不匹配会加剧：在 [EIP-6800](/eip-6800/) 这类无状态/verkle 设计下，加载合约代码将按块（chunk）计费，变得贵得多；而在账户抽象下，许多交易会加载同一个共享的钱包实现。对这些交易多收费用，会白白销毁 base fee，并让区块生产者多拿优先费。\n\n## 它如何运作\n\n执行期间，交易的支付方式与现在完全一样；合约能观察到的内容没有任何变化。不同之处在于区块末尾的一个结算步骤。\n\n1. **收集。** 构建者扫描每笔交易的 [EIP-2930](/eip-2930/) `accessList`，并按地址和存储槽，对声明了它的发送者及其各自支付的优先费进行分组。\n2. **退还销毁部分。** 对于被 *N* 笔交易共享的条目，冷访问成本总共只销毁一次：每个发送者拿回冷访问 base fee 的 `(N-1)/N`，并设有下限，使每个条目至少仍花费 `MIN_ACCESS_LIST_ENTRY_COST = 32` gas（以防止通过巨大的共享访问列表发起 DoS）。\n3. **退还小费。** 区块生产者保留一次冷访问的优先费，按共享者中最高的小费率计算。为该条目收取的其余优先费，按各自的贡献比例退还给发送者。\n4. **发放。** 一个新的系统级\"成本再分配\"操作（参照 [EIP-4895](/eip-4895/) 的提款设计）在所有交易之后运行：向每个发送者记入应得份额，并从 coinbase 扣除相应金额。余额只从下一个区块起才发生变化，因此区块中靠前的交易永远不会受到靠后交易的影响。\n\n为避免访问列表使历史数据膨胀，规范还建议在执行载荷中加入 `block_access_list`，每笔交易用 2 字节的索引引用共享条目。\n\n## 示例代码\n\n按条目计算 base fee 退款的简化版本（仅作示意；按规范文本的描述应用 32 gas 下限）：\n\n```ts\nconst COLD_SLOAD_COST = 2100;\nconst MIN_ACCESS_LIST_ENTRY_COST = 32;\n\n// senders: every tx sender that listed this storage slot in its access list\nfunction burnRefunds(senders: string[], baseFeePerGas: bigint): Map\u003cstring, bigint\u003e {\n  const n = senders.length;\n  const refunds = new Map\u003cstring, bigint\u003e();\n  if (n \u003c 2) return refunds;                     // nothing shared, nothing refunded\n  const share = Math.floor((COLD_SLOAD_COST * (n - 1)) / n);    // (N-1)/N of the cold cost\n  const gas = Math.min(share, COLD_SLOAD_COST - MIN_ACCESS_LIST_ENTRY_COST); // each sender still pays \u003e= 32 gas\n  for (const s of senders) {\n    refunds.set(s, (refunds.get(s) ?? 0n) + BigInt(gas) * baseFeePerGas);\n  }\n  return refunds;\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。它从未被排入网络升级计划。\n- 只有在交易访问列表中声明的条目才参与；未声明的访问照常收费。\n- 规范中有些细节比较松散。例如，它的伪代码对 32 gas 最小值的应用方式与正文不同，而且它一方面说目前没有区块结构变更，另一方面又提出了 `block_access_list` 字段和新的系统操作。请把它当作设计草图，而不是完成的规范。\n- [EIP-7863](/eip-7863/) 是另一种区块级预热提案，它不会以这种方式在发送者和构建者之间重新分配节省的费用。用于并行执行的区块级访问列表这一独立想法，则在 [EIP-7928](/eip-7928/) 中推进。\n"}}}
