{"eip":8279,"title":"Block Access List Byte Floor","description":"Meter EIP-7928 Block Access List bytes at runtime and fold them into the EIP-7623 transaction floor, capping worst-case block size.","authors":["Toni Wahrstätter (@nerolation)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-05-23","requires":[7623,7702,7928,7976,7981,8131],"discussionsTo":"https://ethereum-magicians.org/t/eip-8279-block-access-list-byte-floor/28662","repo":"EIPs","label":"EIP-8279","officialUrl":"https://eips.ethereum.org/EIPS/eip-8279","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8279.md","url":"https://eips.huatuo.xyz/eip-8279/","tldr":{"en":"Counts the bytes each transaction adds to the Block Access List and folds them into the per-byte gas floor, so attackers can no longer pad blocks with cheap cold storage reads and the worst-case block size drops to about gas_limit / 64 bytes.","ja":"各トランザクションが Block Access List に追加するバイト数を数え、バイトあたりのガスフロアに組み込む。これにより攻撃者は安価な cold ストレージ読み取りでブロックを水増しできなくなり、最悪ケースのブロックサイズは約 gas_limit / 64 バイトに下がる。","ko":"각 트랜잭션이 Block Access List에 추가하는 바이트 수를 세어 바이트당 가스 하한에 반영한다. 공격자가 저렴한 cold 스토리지 읽기로 블록을 부풀릴 수 없게 되며, 최악의 블록 크기는 약 gas_limit / 64 바이트로 줄어든다.","zh":"统计每笔交易向区块访问列表（Block Access List）添加的字节数，并将其纳入按字节计的 gas 下限，使攻击者无法再用廉价的冷存储读取来填充区块，最坏情况下的区块大小降至约 gas_limit / 64 字节。"},"tags":["gas","block-size","bal","calldata","core"],"explainers":{"en":{"lang":"en","tldr":"Counts the bytes each transaction adds to the Block Access List and folds them into the per-byte gas floor, so attackers can no longer pad blocks with cheap cold storage reads and the worst-case block size drops to about gas_limit / 64 bytes.","tags":["gas","block-size","bal","calldata","core"],"related":[7928,8131,7623,7976,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8279/","markdown":"## What problem does it solve?\n\nNodes must cope with the biggest block an attacker can build, not the average one. [EIP-7623](/eip-7623/) (and its successors [EIP-7976](/eip-7976/) and [EIP-8131](/eip-8131/)) bound that size by charging a *floor* of 64 gas per byte of transaction content such as calldata.\n\n[EIP-7928](/eip-7928/) Block Access Lists add a new source of block bytes: every storage key, address and changed value touched during execution is written into the block. None of the existing floors price those bytes. A cold `SLOAD` adds 32 BAL bytes for only 2,100 gas, and combining it with calldata lets an attacker escape the calldata floor. At a 60M gas limit the spec computes:\n\n| Attack | Worst-case block bytes |\n| --- | --- |\n| Pure calldata at the floor | 0.894 MB (intended bound) |\n| Cold-`SLOAD` bypass under EIP-7928 | 1.548 MB |\n\n## How it works\n\nEach transaction gets two internal counters (not part of the transaction, not gossiped):\n\n- `bal_data_bytes`: bytes this transaction has added to the BAL so far;\n- `floor_gas_used = static_floor + bal_data_bytes × 64`.\n\n`static_floor` is the EIP-8131 content floor plus 51 bytes per [EIP-7702](/eip-7702/) authorization (address + delegation marker + nonce), so delegation processing never needs runtime metering.\n\nBefore any opcode adds to the BAL, the client calls `meter_bal_data`. Examples: a cold account access adds 20 bytes, a cold storage access 32, the first `SSTORE` that moves a slot off its original value another 32 (refunded if a later write restores it), value-bearing `CALL` 32, and deployed code its length. If the new floor would exceed `tx.gas`, the operation fails with out-of-gas *before* the BAL grows.\n\nAt the end:\n\n```\ntx.gasUsed = max(execution_gas_used, floor_gas_used)\n```\n\nNo gas is reserved or deducted during execution. Because every metered opcode already costs more execution gas than the floor it adds, the floor only binds for transactions whose calldata already pushed them near it, which is exactly the bypass case. Every block byte then costs at least 64 gas, giving `block_bytes ≤ block_gas_limit / 64` (about 0.89 MB at 60M).\n\n## Sample code\n\nThe metering hook, from the spec:\n\n```python\nFLOOR_GAS_PER_BYTE = 64\n\ndef meter_bal_data(tx_env, num_bytes):\n    tx_env.bal_data_bytes += num_bytes\n    new_floor = tx_env.static_floor + tx_env.bal_data_bytes * FLOOR_GAS_PER_BYTE\n    if new_floor \u003e tx_env.gas_limit:      # tx.gas\n        raise OutOfGasError\n    tx_env.floor_gas_used = new_floor\n```\n\nThe spec's bypass example: 937,500 non-zero calldata bytes give a static floor of `21,000 + 64 × 937,500 = 60,021,000`. Each cold `SLOAD` then adds `32 × 64 = 2,048` to the floor, so the attack transaction runs out of gas long before it can add meaningful BAL data.\n\n## Things to know\n\n- **Status: Draft.** It depends on EIP-7928 (Last Call) and EIP-8131 (Draft); the two floors are designed to work together, and neither closes the bypass alone.\n- A plain ETH transfer still costs 21,000 gas. The spec's sample of mainnet transactions estimates that only a small share (well under 1 percentage point beyond EIP-8131's own effect) would pay more.\n- Wallets and `eth_estimateGas` MUST simulate the floor, including runtime BAL bytes; otherwise estimates for floor-bound transactions will be too low.\n- The meter deliberately over-counts in some cases (e.g. value bytes inside reverted calls are not rewound). That only raises the floor and keeps the size bound safe.\n- System calls and withdrawals are not metered per transaction; EIP-7928's block-level item budget covers them.\n"},"ja":{"lang":"ja","tldr":"各トランザクションが Block Access List に追加するバイト数を数え、バイトあたりのガスフロアに組み込む。これにより攻撃者は安価な cold ストレージ読み取りでブロックを水増しできなくなり、最悪ケースのブロックサイズは約 gas_limit / 64 バイトに下がる。","tags":["gas","block-size","bal","calldata","core"],"related":[7928,8131,7623,7976,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8279/","markdown":"## 何を解決するのか\n\nノードが対処しなければならないのは、平均的なブロックではなく、攻撃者が作れる最大のブロックです。[EIP-7623](/eip-7623/)（およびその後継の [EIP-7976](/eip-7976/) と [EIP-8131](/eip-8131/)）は、calldata などのトランザクション内容 1 バイトあたり 64 gas という*フロア*を課すことで、そのサイズに上限を設けます。\n\n[EIP-7928](/eip-7928/) の Block Access List は、ブロックのバイトの新たな発生源を加えます。実行中に触れたすべてのストレージキー、アドレス、変更された値がブロックに書き込まれます。既存のフロアはどれも、それらのバイトに値付けしていません。cold な `SLOAD` は、わずか 2,100 gas で 32 バイトの BAL を追加し、これを calldata と組み合わせると、攻撃者は calldata のフロアを回避できます。60M のガスリミットでは、仕様は次のように計算しています。\n\n| 攻撃 | 最悪ケースのブロックバイト数 |\n| --- | --- |\n| フロアぎりぎりの純粋な calldata | 0.894 MB（意図した上限） |\n| EIP-7928 の下での cold `SLOAD` によるバイパス | 1.548 MB |\n\n## 仕組み\n\n各トランザクションは 2 つの内部カウンターを持ちます（トランザクションの一部ではなく、ゴシップもされません）。\n\n- `bal_data_bytes`: このトランザクションがここまでに BAL へ追加したバイト数\n- `floor_gas_used = static_floor + bal_data_bytes × 64`\n\n`static_floor` は、EIP-8131 のコンテンツフロアに、[EIP-7702](/eip-7702/) の認可 1 件あたり 51 バイト（アドレス + デリゲーションマーカー + nonce）を加えたものです。そのため、デリゲーションの処理で実行時の計測は不要です。\n\nオペコードが BAL に何かを追加する前に、クライアントは `meter_bal_data` を呼び出します。たとえば、cold なアカウントアクセスは 20 バイト、cold なストレージアクセスは 32 バイト、スロットを元の値から動かす最初の `SSTORE` はさらに 32 バイト（後の書き込みで元に戻ると払い戻される）、価値を伴う `CALL` は 32 バイト、デプロイされたコードはその長さを追加します。新しいフロアが `tx.gas` を超える場合、その操作は BAL が増える*前に*ガス切れで失敗します。\n\n最後に:\n\n```\ntx.gasUsed = max(execution_gas_used, floor_gas_used)\n```\n\n実行中にガスが予約・差し引きされることはありません。計測対象のオペコードはすべて、追加するフロアよりも多くの実行ガスをすでに消費するため、フロアが効くのは、calldata によってすでにフロア近くまで押し上げられているトランザクションだけであり、これがまさにバイパスのケースです。その結果、ブロックの 1 バイトごとに少なくとも 64 gas かかるため、`block_bytes ≤ block_gas_limit / 64`（60M で約 0.89 MB）となります。\n\n## サンプルコード\n\n仕様の計測フック:\n\n```python\nFLOOR_GAS_PER_BYTE = 64\n\ndef meter_bal_data(tx_env, num_bytes):\n    tx_env.bal_data_bytes += num_bytes\n    new_floor = tx_env.static_floor + tx_env.bal_data_bytes * FLOOR_GAS_PER_BYTE\n    if new_floor \u003e tx_env.gas_limit:      # tx.gas\n        raise OutOfGasError\n    tx_env.floor_gas_used = new_floor\n```\n\n仕様のバイパスの例: 0 以外の calldata 937,500 バイトで、静的フロアは `21,000 + 64 × 937,500 = 60,021,000` になります。その後、cold な `SLOAD` が 1 回ごとにフロアへ `32 × 64 = 2,048` を加えるため、攻撃用のトランザクションは、意味のある BAL データを追加できるようになるずっと前にガス切れになります。\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** EIP-7928（Last Call）と EIP-8131（Draft）に依存します。2 つのフロアは連携して動くように設計されており、どちらか一方だけではバイパスを塞げません。\n- 単純な ETH 送金は依然として 21,000 gas です。仕様のメインネットのトランザクションのサンプルでは、より多く支払うことになるのはごく一部（EIP-8131 自体の効果を超えて 1 パーセントポイントを大きく下回る）と見積もられています。\n- ウォレットと `eth_estimateGas` は、実行時の BAL バイトを含めてフロアをシミュレートしなければなりません（MUST）。そうしないと、フロアに制約されるトランザクションの見積もりが低すぎることになります。\n- メーターは、一部のケースで意図的に過大にカウントします（たとえば、リバートした呼び出し内の value のバイトは巻き戻されません）。それはフロアを引き上げるだけで、サイズの上限を安全に保ちます。\n- システムコールとウィズドローアルは、トランザクションごとには計測されません。EIP-7928 のブロックレベルのアイテム予算がそれらをカバーします。\n"},"ko":{"lang":"ko","tldr":"각 트랜잭션이 Block Access List에 추가하는 바이트 수를 세어 바이트당 가스 하한에 반영한다. 공격자가 저렴한 cold 스토리지 읽기로 블록을 부풀릴 수 없게 되며, 최악의 블록 크기는 약 gas_limit / 64 바이트로 줄어든다.","tags":["gas","block-size","bal","calldata","core"],"related":[7928,8131,7623,7976,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8279/","markdown":"## 어떤 문제를 해결하나요?\n\n노드는 평균적인 블록이 아니라 공격자가 만들 수 있는 가장 큰 블록을 감당해야 합니다. [EIP-7623](/eip-7623/)(그리고 후속인 [EIP-7976](/eip-7976/)과 [EIP-8131](/eip-8131/))은 calldata 같은 트랜잭션 내용의 바이트당 64 gas라는 *하한*을 부과해 그 크기를 제한합니다.\n\n[EIP-7928](/eip-7928/) Block Access List는 블록 바이트의 새로운 원천을 더합니다. 실행 중에 접근한 모든 스토리지 키, 주소, 변경된 값이 블록에 기록됩니다. 기존 하한 중 어느 것도 이 바이트에는 가격을 매기지 않습니다. cold `SLOAD`는 단 2,100 gas로 32바이트의 BAL을 추가하며, 이를 calldata와 결합하면 공격자는 calldata 하한을 피해 갈 수 있습니다. 60M 가스 한도에서 스펙은 다음과 같이 계산합니다.\n\n| 공격 | 최악의 블록 바이트 수 |\n| --- | --- |\n| 하한에 맞춘 순수 calldata | 0.894 MB(의도한 상한) |\n| EIP-7928 하에서 cold `SLOAD` 우회 | 1.548 MB |\n\n## 어떻게 동작하나요?\n\n각 트랜잭션은 두 개의 내부 카운터를 갖습니다(트랜잭션의 일부가 아니며 가십되지도 않습니다).\n\n- `bal_data_bytes`: 이 트랜잭션이 지금까지 BAL에 추가한 바이트 수\n- `floor_gas_used = static_floor + bal_data_bytes × 64`\n\n`static_floor`는 EIP-8131의 내용 하한에 [EIP-7702](/eip-7702/) 인가 하나당 51바이트(주소 + 위임 마커 + nonce)를 더한 것이어서, 위임 처리에 런타임 계량이 필요하지 않습니다.\n\n어떤 옵코드가 BAL에 무언가를 추가하기 전에 클라이언트는 `meter_bal_data`를 호출합니다. 예를 들어 cold 계정 접근은 20바이트, cold 스토리지 접근은 32바이트, 슬롯을 원래 값에서 움직이는 첫 `SSTORE`는 추가로 32바이트(나중에 쓰기가 원래대로 되돌리면 환불), 값이 있는 `CALL`은 32바이트, 배포된 코드는 그 길이만큼을 추가합니다. 새 하한이 `tx.gas`를 넘으면 그 연산은 BAL이 늘어나기 *전에* 가스 부족으로 실패합니다.\n\n마지막에는 다음과 같습니다.\n\n```\ntx.gasUsed = max(execution_gas_used, floor_gas_used)\n```\n\n실행 중에는 가스를 예약하거나 차감하지 않습니다. 계량되는 모든 옵코드는 이미 자신이 더하는 하한보다 더 많은 실행 가스를 쓰기 때문에, 하한은 calldata로 인해 이미 하한 근처까지 밀려난 트랜잭션에서만 효력이 있으며, 바로 그것이 우회 사례입니다. 그러면 블록 바이트 하나하나가 최소 64 gas씩 들어 `block_bytes ≤ block_gas_limit / 64`(60M에서 약 0.89 MB)가 됩니다.\n\n## 샘플 코드\n\n스펙의 계량 훅:\n\n```python\nFLOOR_GAS_PER_BYTE = 64\n\ndef meter_bal_data(tx_env, num_bytes):\n    tx_env.bal_data_bytes += num_bytes\n    new_floor = tx_env.static_floor + tx_env.bal_data_bytes * FLOOR_GAS_PER_BYTE\n    if new_floor \u003e tx_env.gas_limit:      # tx.gas\n        raise OutOfGasError\n    tx_env.floor_gas_used = new_floor\n```\n\n스펙의 우회 예시: 0이 아닌 calldata 937,500바이트는 정적 하한 `21,000 + 64 × 937,500 = 60,021,000`을 만듭니다. 그러면 cold `SLOAD`마다 하한이 `32 × 64 = 2,048`씩 늘어나므로, 공격 트랜잭션은 의미 있는 BAL 데이터를 추가하기 훨씬 전에 가스가 바닥납니다.\n\n## 알아둘 점\n\n- **상태: Draft.** EIP-7928(Last Call)과 EIP-8131(Draft)에 의존합니다. 두 하한은 함께 동작하도록 설계되었으며, 어느 하나만으로는 우회를 막지 못합니다.\n- 단순 ETH 전송은 여전히 21,000 gas입니다. 스펙의 메인넷 트랜잭션 표본은 더 많이 내게 되는 비율이 작을 것(EIP-8131 자체의 효과 외에 1퍼센트포인트를 한참 밑도는 수준)으로 추정합니다.\n- 지갑과 `eth_estimateGas`는 런타임 BAL 바이트를 포함해 하한을 반드시(MUST) 시뮬레이션해야 합니다. 그렇지 않으면 하한에 걸리는 트랜잭션의 추정치가 너무 낮아집니다.\n- 계량기는 일부 경우에 의도적으로 과다 계산합니다(예: 리버트된 호출 안의 value 바이트는 되돌리지 않음). 그것은 하한을 높일 뿐이며 크기 상한을 안전하게 유지합니다.\n- 시스템 호출과 인출은 트랜잭션별로 계량되지 않으며, EIP-7928의 블록 수준 항목 예산이 이를 다룹니다.\n"},"zh":{"lang":"zh","tldr":"统计每笔交易向区块访问列表（Block Access List）添加的字节数，并将其纳入按字节计的 gas 下限，使攻击者无法再用廉价的冷存储读取来填充区块，最坏情况下的区块大小降至约 gas_limit / 64 字节。","tags":["gas","block-size","bal","calldata","core"],"related":[7928,8131,7623,7976,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8279/","markdown":"## 它解决什么问题？\n\n节点必须应对攻击者能构造的最大区块，而不是平均大小的区块。[EIP-7623](/eip-7623/)（以及它的后继者 [EIP-7976](/eip-7976/) 和 [EIP-8131](/eip-8131/)）通过对 calldata 等交易内容的每个字节收取 64 gas 的*下限*来限制这一大小。\n\n[EIP-7928](/eip-7928/) 的区块访问列表（Block Access List）增加了区块字节的一个新来源：执行期间触及的每个存储键、地址和被修改的值都会写入区块。现有的下限都没有为这些字节定价。一次冷 `SLOAD` 只需 2,100 gas 就会增加 32 字节的 BAL，把它与 calldata 结合使用，攻击者就能绕开 calldata 下限。在 60M 的 gas 上限下，规范计算得出：\n\n| 攻击 | 最坏情况下的区块字节数 |\n| --- | --- |\n| 恰好处于下限的纯 calldata | 0.894 MB（预期上限） |\n| EIP-7928 下的冷 `SLOAD` 绕过 | 1.548 MB |\n\n## 它如何运作\n\n每笔交易有两个内部计数器（不属于交易本身，也不会被广播）：\n\n- `bal_data_bytes`：该交易到目前为止向 BAL 添加的字节数；\n- `floor_gas_used = static_floor + bal_data_bytes × 64`。\n\n`static_floor` 是 EIP-8131 的内容下限，再加上每个 [EIP-7702](/eip-7702/) 授权 51 字节（地址 + 委托标记 + nonce），因此处理委托时永远不需要运行时计量。\n\n在任何操作码向 BAL 添加内容之前，客户端会调用 `meter_bal_data`。示例：冷账户访问增加 20 字节，冷存储访问增加 32 字节，第一次使存储槽偏离其原始值的 `SSTORE` 再增加 32 字节（如果之后的写入将其恢复则退还），带 value 的 `CALL` 增加 32 字节，部署的代码则按其长度增加。如果新的下限将超过 `tx.gas`，该操作会在 BAL 增长*之前*因 gas 耗尽而失败。\n\n最后：\n\n```\ntx.gasUsed = max(execution_gas_used, floor_gas_used)\n```\n\n执行期间不会预留或扣除任何 gas。由于每个被计量的操作码本身消耗的执行 gas 已经比它所增加的下限更多，所以下限只对那些 calldata 已经把它们推到接近下限的交易起作用，而这正是绕过的情形。这样，每个区块字节至少花费 64 gas，得到 `block_bytes ≤ block_gas_limit / 64`（60M 时约为 0.89 MB）。\n\n## 示例代码\n\n规范中的计量钩子：\n\n```python\nFLOOR_GAS_PER_BYTE = 64\n\ndef meter_bal_data(tx_env, num_bytes):\n    tx_env.bal_data_bytes += num_bytes\n    new_floor = tx_env.static_floor + tx_env.bal_data_bytes * FLOOR_GAS_PER_BYTE\n    if new_floor \u003e tx_env.gas_limit:      # tx.gas\n        raise OutOfGasError\n    tx_env.floor_gas_used = new_floor\n```\n\n规范中的绕过示例：937,500 个非零 calldata 字节产生的静态下限为 `21,000 + 64 × 937,500 = 60,021,000`。此后每次冷 `SLOAD` 会使下限增加 `32 × 64 = 2,048`，所以攻击交易会在能够添加有意义的 BAL 数据之前很久就耗尽 gas。\n\n## 需要注意\n\n- **状态：Draft。** 它依赖于 EIP-7928（Last Call）和 EIP-8131（Draft）；这两个下限被设计为协同工作，单独哪一个都无法堵住这个绕过。\n- 普通的 ETH 转账仍然花费 21,000 gas。规范对主网交易的抽样估计显示，只有一小部分交易（除 EIP-8131 自身的影响之外，远低于 1 个百分点）需要多付费。\n- 钱包和 `eth_estimateGas` 必须（MUST）模拟该下限，包括运行时的 BAL 字节；否则，对受下限约束的交易的估算会偏低。\n- 计量器在某些情况下有意多计（例如，已回滚调用内的 value 字节不会被撤销）。这只会抬高下限，使大小上限保持安全。\n- 系统调用和提款不按交易计量；由 EIP-7928 的区块级条目预算覆盖。\n"}}}
