{"eip":8311,"title":"Increase Calldata Floor Cost to 96","description":"Increase the calldata floor cost to 96/96 gas per byte to align it with the ETH-transfer byte-density anchor","authors":["Maria Silva (@misilva73)","Toni Wahrstätter (@nerolation)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-06-20","requires":[3860,7623,7976],"discussionsTo":"https://ethereum-magicians.org/t/eip-8311-increase-calldata-floor-cost-to-96/28860","repo":"EIPs","label":"EIP-8311","officialUrl":"https://eips.ethereum.org/EIPS/eip-8311","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8311.md","url":"https://eips.huatuo.xyz/eip-8311/","tldr":{"en":"Raises the calldata floor price from 64 to 96 gas per byte so a block stuffed with calldata is never denser in bytes per gas than a block full of plain ETH transfers, freeing room to raise the gas limit.","ja":"calldata のフロア価格を 1 バイトあたり 64 ガスから 96 ガスに引き上げる。calldata で埋めたブロックが、単純な ETH 送金だけのブロックよりガスあたりのバイト密度で高くならないようにし、ガスリミットを引き上げる余地を作る。","ko":"calldata 하한(floor) 가격을 바이트당 64 가스에서 96 가스로 올려, calldata로 가득 찬 블록이 단순 ETH 전송으로 가득 찬 블록보다 가스당 바이트 밀도가 높지 않게 하고 가스 한도를 높일 여지를 만든다.","zh":"将 calldata 下限价格从每字节 64 gas 提高到 96 gas，使塞满 calldata 的区块在每 gas 字节数上永远不会比全是普通 ETH 转账的区块更密集，从而腾出提高 gas 上限的空间。"},"tags":["gas","calldata","repricing","core","scaling"],"explainers":{"en":{"lang":"en","tldr":"Raises the calldata floor price from 64 to 96 gas per byte so a block stuffed with calldata is never denser in bytes per gas than a block full of plain ETH transfers, freeing room to raise the gas limit.","tags":["gas","calldata","repricing","core","scaling"],"related":[7623,7976,8007,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8311/","markdown":"## What problem does it solve?\n\nHow high Ethereum can push the block gas limit depends partly on bandwidth: the worst-case block, in bytes, must still propagate across the network in time. Whatever transaction mix carries the most bytes per unit of gas sets that worst case.\n\nThe spec argues that a block full of simple 21,000-gas ETH transfers is the irreducible baseline. Each transfer carries its envelope, signature and block-access-list record (about 221 bytes in the worst case by the spec's accounting), and those can't be priced lower without raising the cost of a transfer. That gives a density of roughly `0.0105` bytes per gas.\n\nAfter [EIP-7976](/eip-7976/), a block of pure calldata costs at least 64 gas per byte, i.e. `1/64 ≈ 0.0156` bytes/gas, about 1.5× denser than the transfer baseline. So calldata, not transfers, is what limits the gas limit. EIP-8311 closes that gap.\n\n## How it works\n\nIt keeps the two-price \"floor\" mechanism from [EIP-7623](/eip-7623/) and EIP-7976 and only changes one constant:\n\n| Parameter | Before (EIP-7976) | After (EIP-8311) |\n| --- | --- | --- |\n| `STANDARD_TOKEN_COST` | 4 | 4 |\n| `TOTAL_COST_FLOOR_PER_TOKEN` | 16 | **24** |\n\nEvery calldata byte, zero or non-zero, counts as 4 floor tokens, so the floor becomes `24 × 4 = 96` gas per byte (previously 64).\n\nA transaction pays the **larger** of its normal cost (standard calldata pricing of 4/16 gas per zero/non-zero byte plus execution) or the floor. Transactions that do real EVM work almost always clear the floor, so they pay the same as before. Only data-heavy transactions with little execution hit the new price.\n\nWhy 96? It is the smallest integer `F` with `1/F` no greater than the transfer density: `ceil(1 / 0.01052) = 96`. At 96 gas/byte a pure-calldata block carries about `0.0104` bytes/gas, just under the anchor.\n\n## Sample code\n\nGas charged for a transaction under the floor rule (pseudocode following EIP-7623/7976 with the new constant):\n\n```python\nSTANDARD_TOKEN_COST = 4\nTOTAL_COST_FLOOR_PER_TOKEN = 24          # was 16 under EIP-7976\n\ndef tx_gas_used(calldata: bytes, execution_gas: int, is_create: bool, initcode_gas: int = 0) -\u003e int:\n    zeros = calldata.count(0)\n    nonzeros = len(calldata) - zeros\n    tokens = zeros + nonzeros * 4                    # standard pricing: 4 / 16 gas per byte\n    floor_tokens = (zeros + nonzeros) * 4            # every byte = 4 tokens for the floor\n\n    standard = 21000 + STANDARD_TOKEN_COST * tokens + execution_gas \\\n               + (32000 + initcode_gas if is_create else 0)\n    floor = 21000 + TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens   # 96 gas per byte\n    return max(standard, floor)\n\n# 100 KB of data with almost no execution: the floor wins\nprint(tx_gas_used(b\"\\x01\" * 100_000, execution_gas=5_000, is_create=False))  # 9,621,000\n```\n\n## Things to know\n\n- **Status: Draft.** It would require a scheduled hard fork; the value 96 could still change.\n- Ordinary DeFi swaps, token transfers and other execution-heavy transactions are expected to be unaffected because they pay more than the floor anyway.\n- Wallets and nodes must update `eth_estimateGas` and any local gas math to use 24 as the floor constant, or data-heavy transactions may be underestimated and fail.\n- The higher calldata price strengthens the push toward blobs ([EIP-4844](/eip-4844/)) for data availability.\n- It only addresses pure-calldata blocks. Mixed blocks that pair cheap standard-rate calldata with byte-heavy state access are explicitly left to a separate proposal. Related execution-side repricing is in [EIP-8007](/eip-8007/).\n"},"ja":{"lang":"ja","tldr":"calldata のフロア価格を 1 バイトあたり 64 ガスから 96 ガスに引き上げる。calldata で埋めたブロックが、単純な ETH 送金だけのブロックよりガスあたりのバイト密度で高くならないようにし、ガスリミットを引き上げる余地を作る。","tags":["gas","calldata","repricing","core","scaling"],"related":[7623,7976,8007,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8311/","markdown":"## 何を解決するのか\n\nEthereum がブロックのガスリミットをどこまで引き上げられるかは、部分的に帯域幅に左右されます。最悪ケースのブロックは、バイト数で見ても、時間内にネットワーク全体に伝播できなければなりません。ガス 1 単位あたりのバイト数が最も多いトランザクションの組み合わせが、その最悪ケースを決めます。\n\n仕様は、21,000 ガスの単純な ETH 送金で埋まったブロックが、これ以上は下げられない基準線だと論じています。各送金はエンベロープ、署名、ブロックアクセスリストのレコードを運び（仕様の計算では最悪ケースで約 221 バイト）、これらは送金のコストを引き上げない限り安くできません。その結果、密度はおよそ 1 ガスあたり `0.0105` バイトになります。\n\n[EIP-7976](/eip-7976/) 以降、純粋な calldata のブロックは 1 バイトあたり少なくとも 64 ガスかかり、つまり `1/64 ≈ 0.0156` バイト/ガスで、送金の基準線より約 1.5 倍密度が高くなります。したがって、ガスリミットを制限しているのは送金ではなく calldata です。EIP-8311 はこの差を埋めます。\n\n## 仕組み\n\n[EIP-7623](/eip-7623/) と EIP-7976 の 2 価格の「フロア」メカニズムを維持し、定数を 1 つだけ変更します。\n\n| パラメータ | 変更前（EIP-7976） | 変更後（EIP-8311） |\n| --- | --- | --- |\n| `STANDARD_TOKEN_COST` | 4 | 4 |\n| `TOTAL_COST_FLOOR_PER_TOKEN` | 16 | **24** |\n\nゼロかどうかにかかわらず、すべての calldata バイトはフロアのトークン 4 個として数えられるため、フロアは `24 × 4 = 96` ガス/バイトになります（以前は 64）。\n\nトランザクションは、通常のコスト（ゼロ/非ゼロバイトにそれぞれ 4/16 ガスの標準 calldata 価格と実行コスト）とフロアの**大きい方**を支払います。実際に EVM の処理を行うトランザクションはほぼ必ずフロアを上回るため、以前と同じ額を支払います。新しい価格が適用されるのは、実行がほとんどないデータ主体のトランザクションだけです。\n\nなぜ 96 か。送金の密度以下となる `1/F` を満たす最小の整数 `F` だからです。`ceil(1 / 0.01052) = 96`。1 バイトあたり 96 ガスでは、純粋な calldata のブロックは約 `0.0104` バイト/ガスを運び、基準をわずかに下回ります。\n\n## サンプルコード\n\nフロアルールのもとでトランザクションに課金されるガス（新しい定数を使った EIP-7623/7976 に準拠する擬似コード）:\n\n```python\nSTANDARD_TOKEN_COST = 4\nTOTAL_COST_FLOOR_PER_TOKEN = 24          # was 16 under EIP-7976\n\ndef tx_gas_used(calldata: bytes, execution_gas: int, is_create: bool, initcode_gas: int = 0) -\u003e int:\n    zeros = calldata.count(0)\n    nonzeros = len(calldata) - zeros\n    tokens = zeros + nonzeros * 4                    # standard pricing: 4 / 16 gas per byte\n    floor_tokens = (zeros + nonzeros) * 4            # every byte = 4 tokens for the floor\n\n    standard = 21000 + STANDARD_TOKEN_COST * tokens + execution_gas \\\n               + (32000 + initcode_gas if is_create else 0)\n    floor = 21000 + TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens   # 96 gas per byte\n    return max(standard, floor)\n\n# 100 KB of data with almost no execution: the floor wins\nprint(tx_gas_used(b\"\\x01\" * 100_000, execution_gas=5_000, is_create=False))  # 9,621,000\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** 予定されたハードフォークが必要で、96 という値はまだ変わる可能性があります。\n- 通常の DeFi スワップ、トークン送金、その他の実行主体のトランザクションは、いずれにせよフロアより多く支払うため、影響を受けないと見込まれています。\n- ウォレットとノードは `eth_estimateGas` とローカルのガス計算を、フロア定数 24 を使うように更新する必要があります。さもないと、データ主体のトランザクションが過小に見積もられ、失敗する可能性があります。\n- calldata の価格が上がることで、データ可用性のために blob（[EIP-4844](/eip-4844/)）を使う流れがさらに強まります。\n- 対象は純粋な calldata のブロックだけです。標準レートの安い calldata と、バイト数の多い状態アクセスを組み合わせた混在ブロックは、別の提案に委ねられることが明記されています。関連する実行側の価格改定は [EIP-8007](/eip-8007/) にあります。\n"},"ko":{"lang":"ko","tldr":"calldata 하한(floor) 가격을 바이트당 64 가스에서 96 가스로 올려, calldata로 가득 찬 블록이 단순 ETH 전송으로 가득 찬 블록보다 가스당 바이트 밀도가 높지 않게 하고 가스 한도를 높일 여지를 만든다.","tags":["gas","calldata","repricing","core","scaling"],"related":[7623,7976,8007,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8311/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움이 블록 가스 한도를 얼마나 높일 수 있는지는 부분적으로 대역폭에 달려 있습니다. 바이트 기준 최악의 블록도 제때 네트워크 전체에 전파되어야 합니다. 가스 단위당 바이트가 가장 많은 트랜잭션 조합이 그 최악의 경우를 결정합니다.\n\n명세는 21,000 가스짜리 단순 ETH 전송으로 가득 찬 블록이 더 줄일 수 없는 기준선이라고 주장합니다. 각 전송은 봉투(envelope), 서명, 블록 접근 목록 레코드를 담고 있으며(명세의 계산으로는 최악의 경우 약 221바이트), 전송 비용을 올리지 않고서는 이를 더 싸게 매길 수 없습니다. 그 결과 밀도는 가스당 대략 `0.0105` 바이트입니다.\n\n[EIP-7976](/eip-7976/) 이후, 순수 calldata 블록은 바이트당 최소 64 가스가 들며 이는 `1/64 ≈ 0.0156` 바이트/가스로, 전송 기준선보다 약 1.5배 밀도가 높습니다. 따라서 가스 한도를 제약하는 것은 전송이 아니라 calldata입니다. EIP-8311은 이 격차를 좁힙니다.\n\n## 어떻게 동작하나요?\n\n[EIP-7623](/eip-7623/)과 EIP-7976의 두 가격 \"하한(floor)\" 메커니즘을 유지하고 상수 하나만 바꿉니다.\n\n| 파라미터 | 이전(EIP-7976) | 이후(EIP-8311) |\n| --- | --- | --- |\n| `STANDARD_TOKEN_COST` | 4 | 4 |\n| `TOTAL_COST_FLOOR_PER_TOKEN` | 16 | **24** |\n\n0이든 아니든 모든 calldata 바이트는 하한 토큰 4개로 계산되므로, 하한은 `24 × 4 = 96` 가스/바이트가 됩니다(이전에는 64).\n\n트랜잭션은 일반 비용(0/0이 아닌 바이트당 4/16 가스의 표준 calldata 가격에 실행 비용을 더한 것)과 하한 중 **더 큰 쪽**을 냅니다. 실제 EVM 작업을 하는 트랜잭션은 거의 항상 하한을 넘으므로 이전과 같은 금액을 냅니다. 실행이 거의 없는 데이터 중심 트랜잭션만 새 가격에 걸립니다.\n\n왜 96일까요? `1/F`가 전송 밀도보다 크지 않은 가장 작은 정수 `F`이기 때문입니다. `ceil(1 / 0.01052) = 96`. 바이트당 96 가스에서 순수 calldata 블록은 가스당 약 `0.0104` 바이트를 싣게 되어 기준점 바로 아래입니다.\n\n## 샘플 코드\n\n하한 규칙에 따라 트랜잭션에 부과되는 가스(새 상수를 적용한 EIP-7623/7976 기준 의사 코드):\n\n```python\nSTANDARD_TOKEN_COST = 4\nTOTAL_COST_FLOOR_PER_TOKEN = 24          # was 16 under EIP-7976\n\ndef tx_gas_used(calldata: bytes, execution_gas: int, is_create: bool, initcode_gas: int = 0) -\u003e int:\n    zeros = calldata.count(0)\n    nonzeros = len(calldata) - zeros\n    tokens = zeros + nonzeros * 4                    # standard pricing: 4 / 16 gas per byte\n    floor_tokens = (zeros + nonzeros) * 4            # every byte = 4 tokens for the floor\n\n    standard = 21000 + STANDARD_TOKEN_COST * tokens + execution_gas \\\n               + (32000 + initcode_gas if is_create else 0)\n    floor = 21000 + TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens   # 96 gas per byte\n    return max(standard, floor)\n\n# 100 KB of data with almost no execution: the floor wins\nprint(tx_gas_used(b\"\\x01\" * 100_000, execution_gas=5_000, is_create=False))  # 9,621,000\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 예정된 하드 포크가 필요하며 96이라는 값은 아직 바뀔 수 있습니다.\n- 일반적인 DeFi 스왑, 토큰 전송, 그 밖의 실행 중심 트랜잭션은 어차피 하한보다 많이 내므로 영향을 받지 않을 것으로 예상됩니다.\n- 지갑과 노드는 `eth_estimateGas`와 로컬 가스 계산을 하한 상수 24를 사용하도록 업데이트해야 하며, 그렇지 않으면 데이터 중심 트랜잭션이 과소 추정되어 실패할 수 있습니다.\n- calldata 가격이 높아지면 데이터 가용성을 위해 blob([EIP-4844](/eip-4844/))으로 옮겨 가려는 흐름이 더 강해집니다.\n- 순수 calldata 블록만 다룹니다. 표준 요율의 저렴한 calldata와 바이트가 많은 상태 접근을 짝지은 혼합 블록은 별도의 제안에 맡긴다고 명시되어 있습니다. 관련된 실행 측 가격 재조정은 [EIP-8007](/eip-8007/)에 있습니다.\n"},"zh":{"lang":"zh","tldr":"将 calldata 下限价格从每字节 64 gas 提高到 96 gas，使塞满 calldata 的区块在每 gas 字节数上永远不会比全是普通 ETH 转账的区块更密集，从而腾出提高 gas 上限的空间。","tags":["gas","calldata","repricing","core","scaling"],"related":[7623,7976,8007,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8311/","markdown":"## 它解决什么问题？\n\n以太坊能把区块 gas 上限推高到多少，部分取决于带宽：以字节计的最坏情况区块仍必须及时在网络中传播。每单位 gas 携带字节数最多的那种交易组合，决定了这个最坏情况。\n\n规范认为，装满简单的 21,000 gas ETH 转账的区块是无法再压缩的基线。每笔转账都带有其信封、签名和区块访问列表记录（按规范的核算，最坏情况下约 221 字节），除非提高转账成本，否则这些都无法定得更低。由此得到的密度约为每 gas `0.0105` 字节。\n\n在 [EIP-7976](/eip-7976/) 之后，纯 calldata 的区块每字节至少花费 64 gas，即 `1/64 ≈ 0.0156` 字节/gas，比转账基线密度高约 1.5 倍。所以真正限制 gas 上限的是 calldata，而不是转账。EIP-8311 缩小了这一差距。\n\n## 它如何运作\n\n它保留了 [EIP-7623](/eip-7623/) 和 EIP-7976 的双价格\"下限（floor）\"机制，只改动一个常量：\n\n| 参数 | 之前（EIP-7976） | 之后（EIP-8311） |\n| --- | --- | --- |\n| `STANDARD_TOKEN_COST` | 4 | 4 |\n| `TOTAL_COST_FLOOR_PER_TOKEN` | 16 | **24** |\n\n每个 calldata 字节，无论是零还是非零，都按 4 个下限 token 计算，因此下限变为 `24 × 4 = 96` gas/字节（此前为 64）。\n\n交易支付其正常成本（零/非零字节分别按 4/16 gas 的标准 calldata 定价，加上执行成本）与下限中的**较大者**。真正执行 EVM 工作的交易几乎总会超过下限，因此支付的费用与以前相同。只有执行很少、以数据为主的交易才会碰到新价格。\n\n为什么是 96？它是使 `1/F` 不大于转账密度的最小整数 `F`：`ceil(1 / 0.01052) = 96`。在每字节 96 gas 时，纯 calldata 区块每 gas 约携带 `0.0104` 字节，略低于锚点。\n\n## 示例代码\n\n在下限规则下交易所收取的 gas（遵循 EIP-7623/7976 并使用新常量的伪代码）：\n\n```python\nSTANDARD_TOKEN_COST = 4\nTOTAL_COST_FLOOR_PER_TOKEN = 24          # was 16 under EIP-7976\n\ndef tx_gas_used(calldata: bytes, execution_gas: int, is_create: bool, initcode_gas: int = 0) -\u003e int:\n    zeros = calldata.count(0)\n    nonzeros = len(calldata) - zeros\n    tokens = zeros + nonzeros * 4                    # standard pricing: 4 / 16 gas per byte\n    floor_tokens = (zeros + nonzeros) * 4            # every byte = 4 tokens for the floor\n\n    standard = 21000 + STANDARD_TOKEN_COST * tokens + execution_gas \\\n               + (32000 + initcode_gas if is_create else 0)\n    floor = 21000 + TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens   # 96 gas per byte\n    return max(standard, floor)\n\n# 100 KB of data with almost no execution: the floor wins\nprint(tx_gas_used(b\"\\x01\" * 100_000, execution_gas=5_000, is_create=False))  # 9,621,000\n```\n\n## 需要注意\n\n- **状态：Draft。**它需要一次按计划进行的硬分叉；96 这个值仍可能改变。\n- 普通的 DeFi 兑换、代币转账和其他以执行为主的交易预计不受影响，因为它们支付的费用本来就高于下限。\n- 钱包和节点必须更新 `eth_estimateGas` 以及任何本地 gas 计算，改用 24 作为下限常量，否则以数据为主的交易可能被低估而失败。\n- 更高的 calldata 价格进一步推动人们使用 blob（[EIP-4844](/eip-4844/)）来保证数据可用性。\n- 它只处理纯 calldata 的区块。将便宜的标准费率 calldata 与字节量大的状态访问搭配的混合区块，被明确留给另一项提案。相关的执行侧重新定价见 [EIP-8007](/eip-8007/)。\n"}}}
