{"eip":7976,"title":"Increase Calldata Floor Cost","description":"Increase the calldata floor cost to 64/64 gas per byte to reduce maximum block size","authors":["Toni Wahrstätter (@nerolation)"],"status":"Last Call","type":"Standards Track","category":"Core","created":"2025-06-18","requires":[7623],"discussionsTo":"https://ethereum-magicians.org/t/eip-7976-further-increase-calldata-cost/24597","repo":"EIPs","label":"EIP-7976","officialUrl":"https://eips.ethereum.org/EIPS/eip-7976","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7976.md","url":"https://eips.huatuo.xyz/eip-7976/","tldr":{"en":"Raises the calldata floor price from EIP-7623's 10/40 to a flat 64 gas per byte for data-heavy transactions, cutting the worst-case block size by about 37 % while leaving normal transactions unaffected.","ja":"calldata のフロア価格を EIP-7623 の 10/40 から、データ量の多いトランザクションに対して 1 バイトあたり一律 64 gas へ引き上げ、通常のトランザクションに影響を与えずに最悪ケースのブロックサイズを約 37 % 削減する。","ko":"calldata 하한 가격을 EIP-7623의 10/40에서 데이터가 많은 트랜잭션에 대해 바이트당 일괄 64 gas로 올려, 일반 트랜잭션에는 영향을 주지 않으면서 최악의 경우 블록 크기를 약 37 % 줄인다.","zh":"将 calldata 的下限价格从 EIP-7623 的 10/40 提高到对数据密集型交易统一按每字节 64 gas，在不影响普通交易的前提下，将最坏情况下的区块大小缩减约 37 %。"},"tags":["gas","calldata","block-size","scaling","core"],"explainers":{"en":{"lang":"en","tldr":"Raises the calldata floor price from EIP-7623's 10/40 to a flat 64 gas per byte for data-heavy transactions, cutting the worst-case block size by about 37 % while leaving normal transactions unaffected.","tags":["gas","calldata","block-size","scaling","core"],"related":[7623,2028,4844,7706],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7976/","markdown":"## What problem does it solve?\n\nCalldata is priced at 4 gas per zero byte and 16 per non-zero byte. That made it possible to fill a block with cheap data and produce a very large block, which hurts propagation and limits how far the gas limit can be raised. [EIP-7623](/eip-7623/) added a **floor price** (10/40 gas per byte) that only applies to transactions that are mostly data. As the gas limit keeps growing, that floor still allows large data-heavy payloads.\n\nEIP-7976 raises the floor to 64 gas per byte, zero or non-zero. Per the spec, at a 45M gas limit the maximum data-heavy payload drops from about 1.07 MB to about 0.67 MB, roughly 37 % smaller, giving headroom for further gas limit increases and nudging data users toward blobs ([EIP-4844](/eip-4844/)).\n\n## How it works\n\nThe EIP-7623 formula stays; only the floor constant and token counting change.\n\n- `STANDARD_TOKEN_COST = 4`, `TOTAL_COST_FLOOR_PER_TOKEN = 16`.\n- Standard tokens: `zero_bytes + 4 * nonzero_bytes` (so normal pricing remains 4/16).\n- Floor tokens: `4 * (zero_bytes + nonzero_bytes)`, i.e. 64 gas per byte.\n\n```python\ntx.gasUsed = 21000 + max(\n    STANDARD_TOKEN_COST * tokens_in_calldata\n      + execution_gas_used\n      + is_create * (32000 + INITCODE_WORD_COST * words(calldata)),\n    TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens_in_calldata,\n)\n```\n\nA transaction pays whichever is larger: normal pricing plus execution, or the floor. Transactions that do meaningful EVM work clear the floor and pay as before. A transaction is invalid if its gas limit is below `21000 + 64 * len(calldata)` (or its intrinsic gas, whichever is higher), even though actual `gasUsed` can end up lower.\n\n## Sample code\n\nEstimating the minimum gas limit a wallet must set for a calldata payload (TypeScript):\n\n```ts\nfunction calldataGas(data: Uint8Array) {\n  let zero = 0;\n  for (const b of data) if (b === 0) zero++;\n  const nonzero = data.length - zero;\n  const standard = 21000 + 4 * (zero + 4 * nonzero); // before execution gas\n  const floor = 21000 + 64 * data.length;            // EIP-7976 floor\n  return { standard, floor, minGasLimit: Math.max(standard, floor) };\n}\n\nconsole.log(calldataGas(new Uint8Array(1000).fill(1)));\n// { standard: 37000, floor: 85000, minGasLimit: 85000 }\n```\n\n## Things to know\n\n- Status: **Last Call**. It is not live until scheduled in a network upgrade.\n- Wallets and `eth_estimateGas` implementations must account for the new floor, or data-heavy transactions will be underestimated and fail.\n- The spec's analysis of Sept. 2024 to Sept. 2025 blocks found about 1.5 % of transactions would have been affected, mostly data posting rather than DeFi or transfers.\n- Rollups that still post data in calldata instead of blobs are the most affected group.\n"},"ja":{"lang":"ja","tldr":"calldata のフロア価格を EIP-7623 の 10/40 から、データ量の多いトランザクションに対して 1 バイトあたり一律 64 gas へ引き上げ、通常のトランザクションに影響を与えずに最悪ケースのブロックサイズを約 37 % 削減する。","tags":["gas","calldata","block-size","scaling","core"],"related":[7623,2028,4844,7706],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7976/","markdown":"## 何を解決するのか\n\ncalldata の価格はゼロバイトが 4 gas、非ゼロバイトが 16 gas です。そのため、安価なデータでブロックを埋めて非常に大きなブロックを作ることができ、伝播に悪影響を与え、gas limit をどこまで引き上げられるかを制限していました。[EIP-7623](/eip-7623/) は、ほぼデータだけで構成されるトランザクションにのみ適用される**フロア価格**（1 バイトあたり 10/40 gas）を追加しました。gas limit が伸び続ける中でも、このフロアでは依然としてデータ量の多い大きなペイロードを許してしまいます。\n\nEIP-7976 はフロアを、ゼロか非ゼロかを問わず 1 バイトあたり 64 gas に引き上げます。仕様によると、gas limit 4,500 万の場合、データ量の多いペイロードの最大サイズは約 1.07 MB から約 0.67 MB へと約 37 % 小さくなり、さらなる gas limit 引き上げの余地を生み、データ利用者を blob（[EIP-4844](/eip-4844/)）へ促します。\n\n## 仕組み\n\nEIP-7623 の計算式はそのままで、フロアの定数とトークンの数え方だけが変わります。\n\n- `STANDARD_TOKEN_COST = 4`、`TOTAL_COST_FLOOR_PER_TOKEN = 16`。\n- 標準トークン: `zero_bytes + 4 * nonzero_bytes`（通常の価格設定は 4/16 のまま）。\n- フロアトークン: `4 * (zero_bytes + nonzero_bytes)`、つまり 1 バイトあたり 64 gas。\n\n```python\ntx.gasUsed = 21000 + max(\n    STANDARD_TOKEN_COST * tokens_in_calldata\n      + execution_gas_used\n      + is_create * (32000 + INITCODE_WORD_COST * words(calldata)),\n    TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens_in_calldata,\n)\n```\n\nトランザクションは、通常の価格設定に実行コストを加えたものとフロアのうち、大きいほうを支払います。意味のある EVM 処理を行うトランザクションはフロアを超えるため、従来どおりの支払いになります。実際の `gasUsed` がそれより低くなる場合でも、gas limit が `21000 + 64 * len(calldata)`（またはイントリンシック gas のうち大きいほう）を下回るトランザクションは無効です。\n\n## サンプルコード\n\ncalldata ペイロードに対してウォレットが設定すべき最小の gas limit を見積もる（TypeScript）:\n\n```ts\nfunction calldataGas(data: Uint8Array) {\n  let zero = 0;\n  for (const b of data) if (b === 0) zero++;\n  const nonzero = data.length - zero;\n  const standard = 21000 + 4 * (zero + 4 * nonzero); // before execution gas\n  const floor = 21000 + 64 * data.length;            // EIP-7976 floor\n  return { standard, floor, minGasLimit: Math.max(standard, floor) };\n}\n\nconsole.log(calldataGas(new Uint8Array(1000).fill(1)));\n// { standard: 37000, floor: 85000, minGasLimit: 85000 }\n```\n\n## 知っておくべきこと\n\n- ステータス: **Last Call**。ネットワークアップグレードでスケジュールされるまで有効にはなりません。\n- ウォレットと `eth_estimateGas` の実装は新しいフロアを考慮する必要があります。さもないと、データ量の多いトランザクションは過小に見積もられて失敗します。\n- 仕様による 2024 年 9 月から 2025 年 9 月までのブロックの分析では、影響を受けたトランザクションは約 1.5 % で、その大半は DeFi や送金ではなくデータ投稿でした。\n- blob ではなく calldata でデータを投稿し続けているロールアップが、最も影響を受けるグループです。\n"},"ko":{"lang":"ko","tldr":"calldata 하한 가격을 EIP-7623의 10/40에서 데이터가 많은 트랜잭션에 대해 바이트당 일괄 64 gas로 올려, 일반 트랜잭션에는 영향을 주지 않으면서 최악의 경우 블록 크기를 약 37 % 줄인다.","tags":["gas","calldata","block-size","scaling","core"],"related":[7623,2028,4844,7706],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7976/","markdown":"## 어떤 문제를 해결하나요?\n\ncalldata 가격은 0 바이트당 4 gas, 0이 아닌 바이트당 16 gas입니다. 그래서 저렴한 데이터로 블록을 채워 아주 큰 블록을 만들 수 있었고, 이는 전파에 악영향을 주며 gas limit을 얼마나 올릴 수 있는지를 제한했습니다. [EIP-7623](/eip-7623/)은 대부분이 데이터인 트랜잭션에만 적용되는 **하한 가격**(바이트당 10/40 gas)을 추가했습니다. gas limit이 계속 커지면서, 이 하한으로는 여전히 데이터가 많은 큰 페이로드가 가능합니다.\n\nEIP-7976은 하한을 0 바이트든 아니든 바이트당 64 gas로 올립니다. 명세에 따르면 gas limit 4,500만 기준으로 데이터가 많은 페이로드의 최대 크기는 약 1.07 MB에서 약 0.67 MB로 약 37 % 줄어들어, gas limit을 더 올릴 여유를 만들고 데이터 사용자가 blob([EIP-4844](/eip-4844/))으로 옮겨가도록 유도합니다.\n\n## 어떻게 동작하나요?\n\nEIP-7623의 공식은 그대로이고, 하한 상수와 토큰 계산 방식만 바뀝니다.\n\n- `STANDARD_TOKEN_COST = 4`, `TOTAL_COST_FLOOR_PER_TOKEN = 16`.\n- 표준 토큰: `zero_bytes + 4 * nonzero_bytes`(따라서 일반 가격은 4/16 그대로).\n- 하한 토큰: `4 * (zero_bytes + nonzero_bytes)`, 즉 바이트당 64 gas.\n\n```python\ntx.gasUsed = 21000 + max(\n    STANDARD_TOKEN_COST * tokens_in_calldata\n      + execution_gas_used\n      + is_create * (32000 + INITCODE_WORD_COST * words(calldata)),\n    TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens_in_calldata,\n)\n```\n\n트랜잭션은 일반 가격에 실행 비용을 더한 값과 하한 중 더 큰 쪽을 지불합니다. 의미 있는 EVM 작업을 수행하는 트랜잭션은 하한을 넘기 때문에 이전과 같이 지불합니다. 실제 `gasUsed`가 더 낮게 나올 수 있더라도, gas limit이 `21000 + 64 * len(calldata)`(또는 intrinsic gas 중 더 큰 값)보다 낮은 트랜잭션은 유효하지 않습니다.\n\n## 샘플 코드\n\ncalldata 페이로드에 대해 지갑이 설정해야 하는 최소 gas limit 추정(TypeScript):\n\n```ts\nfunction calldataGas(data: Uint8Array) {\n  let zero = 0;\n  for (const b of data) if (b === 0) zero++;\n  const nonzero = data.length - zero;\n  const standard = 21000 + 4 * (zero + 4 * nonzero); // before execution gas\n  const floor = 21000 + 64 * data.length;            // EIP-7976 floor\n  return { standard, floor, minGasLimit: Math.max(standard, floor) };\n}\n\nconsole.log(calldataGas(new Uint8Array(1000).fill(1)));\n// { standard: 37000, floor: 85000, minGasLimit: 85000 }\n```\n\n## 알아둘 점\n\n- 상태: **Last Call**. 네트워크 업그레이드에 일정이 잡히기 전까지는 적용되지 않습니다.\n- 지갑과 `eth_estimateGas` 구현은 새 하한을 반영해야 합니다. 그렇지 않으면 데이터가 많은 트랜잭션이 과소 추정되어 실패합니다.\n- 명세가 2024년 9월부터 2025년 9월까지의 블록을 분석한 결과, 영향을 받는 트랜잭션은 약 1.5 %였고 대부분 DeFi나 전송이 아니라 데이터 게시였습니다.\n- blob 대신 calldata로 데이터를 게시하는 롤업이 가장 큰 영향을 받는 그룹입니다.\n"},"zh":{"lang":"zh","tldr":"将 calldata 的下限价格从 EIP-7623 的 10/40 提高到对数据密集型交易统一按每字节 64 gas，在不影响普通交易的前提下，将最坏情况下的区块大小缩减约 37 %。","tags":["gas","calldata","block-size","scaling","core"],"related":[7623,2028,4844,7706],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7976/","markdown":"## 它解决什么问题？\n\ncalldata 的定价是零字节 4 gas、非零字节 16 gas。这使得用廉价数据填满区块、产生非常大的区块成为可能，既不利于区块传播，也限制了 gas limit 能提高的幅度。[EIP-7623](/eip-7623/) 增加了一个**下限价格**（每字节 10/40 gas），只适用于以数据为主的交易。随着 gas limit 不断增长，这个下限仍然允许很大的数据密集型载荷。\n\nEIP-7976 将下限提高到每字节 64 gas，不区分零字节与非零字节。按规范所述，在 4500 万 gas limit 下，数据密集型载荷的最大值从约 1.07 MB 降至约 0.67 MB，缩小约 37 %，为进一步提高 gas limit 留出空间，并促使数据使用者转向 blob（[EIP-4844](/eip-4844/)）。\n\n## 它如何运作\n\nEIP-7623 的公式保持不变；只改变下限常量和 token 的计数方式。\n\n- `STANDARD_TOKEN_COST = 4`，`TOTAL_COST_FLOOR_PER_TOKEN = 16`。\n- 标准 token：`zero_bytes + 4 * nonzero_bytes`（因此常规定价仍为 4/16）。\n- 下限 token：`4 * (zero_bytes + nonzero_bytes)`，即每字节 64 gas。\n\n```python\ntx.gasUsed = 21000 + max(\n    STANDARD_TOKEN_COST * tokens_in_calldata\n      + execution_gas_used\n      + is_create * (32000 + INITCODE_WORD_COST * words(calldata)),\n    TOTAL_COST_FLOOR_PER_TOKEN * floor_tokens_in_calldata,\n)\n```\n\n交易支付两者中较大的一个：常规定价加执行费用，或者下限。真正执行 EVM 工作的交易会超过下限，因此照常付费。如果交易的 gas limit 低于 `21000 + 64 * len(calldata)`（或其固有 gas，取较大者），该交易就是无效的，即使实际的 `gasUsed` 可能更低。\n\n## 示例代码\n\n估算钱包为某个 calldata 载荷必须设置的最小 gas limit（TypeScript）：\n\n```ts\nfunction calldataGas(data: Uint8Array) {\n  let zero = 0;\n  for (const b of data) if (b === 0) zero++;\n  const nonzero = data.length - zero;\n  const standard = 21000 + 4 * (zero + 4 * nonzero); // before execution gas\n  const floor = 21000 + 64 * data.length;            // EIP-7976 floor\n  return { standard, floor, minGasLimit: Math.max(standard, floor) };\n}\n\nconsole.log(calldataGas(new Uint8Array(1000).fill(1)));\n// { standard: 37000, floor: 85000, minGasLimit: 85000 }\n```\n\n## 需要注意\n\n- 状态：**Last Call**。在网络升级中被排期之前不会生效。\n- 钱包和 `eth_estimateGas` 的实现必须考虑新的下限，否则数据密集型交易会被低估并失败。\n- 规范对 2024 年 9 月至 2025 年 9 月区块的分析发现，约 1.5 % 的交易会受到影响，主要是数据发布，而不是 DeFi 或转账。\n- 仍然用 calldata 而非 blob 发布数据的 rollup 是受影响最大的群体。\n"}},"requiredBy":[7981,8007,8037,8131,8141,8202,8250,8279,8311]}
