{"eip":7703,"title":"Increase calldata cost","description":"Increase calldata cost to decrease the maximum block size","authors":["William Morriss (@wjmelements)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2024-05-07","discussionsTo":"https://ethereum-magicians.org/t/eip-7703-increase-calldata-cost/19933","repo":"EIPs","label":"EIP-7703","officialUrl":"https://eips.ethereum.org/EIPS/eip-7703","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7703.md","url":"https://eips.huatuo.xyz/eip-7703/","tldr":{"en":"Proposed tripling calldata gas (4→12 per zero byte, 16→48 per non-zero byte) to shrink the worst-case block size so the gas limit could be raised safely.","ja":"ゼロバイトあたり 4→12、非ゼロバイトあたり 16→48 と calldata の gas を 3 倍にする提案。最悪ケースのブロックサイズを縮小し、gas リミットを安全に引き上げられるようにする。","ko":"calldata gas를 3배로 올리자는 제안(0 바이트당 4→12, 0이 아닌 바이트당 16→48). 최악의 경우의 블록 크기를 줄여 gas 한도를 안전하게 올릴 수 있게 한다.","zh":"提议将 calldata 的 gas 提高到三倍（零字节 4→12，非零字节 16→48），以缩小最坏情况下的区块大小，从而可以安全地提高 gas 上限。"},"tags":["gas","calldata","block-size","core","scaling"],"explainers":{"en":{"lang":"en","tldr":"Proposed tripling calldata gas (4→12 per zero byte, 16→48 per non-zero byte) to shrink the worst-case block size so the gas limit could be raised safely.","tags":["gas","calldata","block-size","core","scaling"],"related":[7623,7976,4844,2028],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7703/","markdown":"## What problem does it solve?\n\nThe biggest possible Ethereum block, in bytes, is reached by filling it with cheap calldata. Big blocks take longer to propagate across the network, so this worst case, not typical usage, is one of the things holding back increases to the block gas limit.\n\nEIP-7703 takes the most direct route: make calldata three times more expensive. With the same gas limit, the maximum block size shrinks by about a factor of three, which gives room to raise the gas limit without making the worst case worse.\n\n## How it works\n\nThe proposal changes two constants and nothing else:\n\n| Constant | Today | EIP-7703 |\n| --- | --- | --- |\n| `G_CALLDATAZERO` (per zero byte) | 4 | 12 |\n| `G_CALLDATANONZERO` (per non-zero byte) | 16 | 48 |\n\nEvery transaction pays these per byte of `data` as part of its intrinsic gas. Execution gas, storage, and blob pricing ([EIP-4844](/eip-4844/)) are untouched.\n\nBecause the change is blunt, it raises costs for every transaction that carries calldata, including ordinary contract calls, not only for data-heavy ones.\n\n## Sample code\n\nIntrinsic calldata cost before and after (TypeScript, no dependencies):\n\n```ts\nfunction calldataGas(data: Uint8Array, zero: number, nonZero: number): number {\n  let gas = 0;\n  for (const b of data) gas += b === 0 ? zero : nonZero;\n  return gas;\n}\n\nconst hex = \"a9059cbb000000000000000000000000d8da6bf26964af9d7eed9e10e5d4ba5f1c42e8f20000000000000000000000000000000000000000000000000de0b6b3a7640000\";\nconst data = Uint8Array.from(hex.match(/../g)!.map((h) =\u003e parseInt(h, 16)));\n\nconsole.log(\"today:   \", calldataGas(data, 4, 16));  // 21000 + this = intrinsic gas\nconsole.log(\"EIP-7703:\", calldataGas(data, 12, 48)); // exactly 3x\n```\n\nRough maximum block size from calldata alone:\n\n```python\ngas_limit = 30_000_000   # illustrative gas limit\nprint(gas_limit // 16)   # ~1.87 MB of non-zero calldata today\nprint(gas_limit // 48)   # ~0.62 MB under EIP-7703\n```\n\n## Things to know\n\n- Status is **Stagnant**. Ethereum instead adopted [EIP-7623](/eip-7623/) (Pectra), which introduces a higher *floor* price that only applies to transactions that are mostly data and do little execution. That caps the worst-case block size while leaving normal transactions' costs unchanged. [EIP-7976](/eip-7976/) proposes raising that floor further.\n- The spec notes that activation could make some transactions run out of gas if their gas limit was estimated under the old prices; wallets would need to estimate with the new constants ahead of the fork.\n- Rollups that still post data as calldata rather than blobs would have been hit hardest by a flat tripling.\n"},"ja":{"lang":"ja","tldr":"ゼロバイトあたり 4→12、非ゼロバイトあたり 16→48 と calldata の gas を 3 倍にする提案。最悪ケースのブロックサイズを縮小し、gas リミットを安全に引き上げられるようにする。","tags":["gas","calldata","block-size","core","scaling"],"related":[7623,7976,4844,2028],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7703/","markdown":"## 何を解決するのか\n\nEthereum で理論上最大のブロックサイズ（バイト単位）は、安価な calldata でブロックを埋めたときに到達します。大きなブロックはネットワーク全体への伝播に時間がかかるため、通常の利用ではなくこの最悪ケースが、ブロック gas リミットの引き上げを妨げている要因の 1 つです。\n\nEIP-7703 は最も直接的な方法を取ります。calldata のコストを 3 倍にするのです。gas リミットが同じなら最大ブロックサイズは約 3 分の 1 に縮小し、最悪ケースを悪化させずに gas リミットを引き上げる余地が生まれます。\n\n## 仕組み\n\nこの提案が変更するのは 2 つの定数だけです。\n\n| 定数 | 現在 | EIP-7703 |\n| --- | --- | --- |\n| `G_CALLDATAZERO`（ゼロバイトあたり） | 4 | 12 |\n| `G_CALLDATANONZERO`（非ゼロバイトあたり） | 16 | 48 |\n\nすべてのトランザクションは、`data` の 1 バイトごとにこれを intrinsic gas の一部として支払います。実行 gas、ストレージ、blob の価格設定（[EIP-4844](/eip-4844/)）には手を加えません。\n\nこの変更は大雑把なため、データ量の多いトランザクションだけでなく、通常のコントラクト呼び出しを含め、calldata を持つすべてのトランザクションのコストが上がります。\n\n## サンプルコード\n\n変更前後の intrinsic calldata コスト（TypeScript、依存なし）:\n\n```ts\nfunction calldataGas(data: Uint8Array, zero: number, nonZero: number): number {\n  let gas = 0;\n  for (const b of data) gas += b === 0 ? zero : nonZero;\n  return gas;\n}\n\nconst hex = \"a9059cbb000000000000000000000000d8da6bf26964af9d7eed9e10e5d4ba5f1c42e8f20000000000000000000000000000000000000000000000000de0b6b3a7640000\";\nconst data = Uint8Array.from(hex.match(/../g)!.map((h) =\u003e parseInt(h, 16)));\n\nconsole.log(\"today:   \", calldataGas(data, 4, 16));  // 21000 + this = intrinsic gas\nconsole.log(\"EIP-7703:\", calldataGas(data, 12, 48)); // exactly 3x\n```\n\ncalldata だけで埋めた場合の最大ブロックサイズの目安:\n\n```python\ngas_limit = 30_000_000   # illustrative gas limit\nprint(gas_limit // 16)   # ~1.87 MB of non-zero calldata today\nprint(gas_limit // 48)   # ~0.62 MB under EIP-7703\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。Ethereum は代わりに [EIP-7623](/eip-7623/)（Pectra）を採用しました。これは、ほとんどがデータで実行がわずかなトランザクションにのみ適用される、より高い*下限*価格を導入するものです。これにより、通常のトランザクションのコストを変えずに最悪ケースのブロックサイズを抑えられます。[EIP-7976](/eip-7976/) は、その下限をさらに引き上げることを提案しています。\n- 仕様は、有効化によって、旧価格で見積もった gas リミットを持つ一部のトランザクションが gas 不足になる可能性があると述べています。ウォレットはフォークの前に新しい定数で見積もる必要があります。\n- blob ではなく calldata でデータを投稿し続けているロールアップは、一律 3 倍の影響を最も強く受けたはずです。\n"},"ko":{"lang":"ko","tldr":"calldata gas를 3배로 올리자는 제안(0 바이트당 4→12, 0이 아닌 바이트당 16→48). 최악의 경우의 블록 크기를 줄여 gas 한도를 안전하게 올릴 수 있게 한다.","tags":["gas","calldata","block-size","core","scaling"],"related":[7623,7976,4844,2028],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7703/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움 블록이 바이트 기준으로 가장 커질 수 있는 경우는 저렴한 calldata로 블록을 가득 채웠을 때입니다. 큰 블록은 네트워크에 전파되는 데 시간이 더 걸리므로, 일반적인 사용이 아니라 이 최악의 경우가 블록 gas 한도 상향을 가로막는 요인 중 하나입니다.\n\nEIP-7703은 가장 직접적인 방법을 택합니다. calldata를 3배 비싸게 만드는 것입니다. gas 한도가 같다면 최대 블록 크기가 약 3분의 1로 줄어들어, 최악의 경우를 악화시키지 않고 gas 한도를 올릴 여지가 생깁니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 상수 두 개만 바꾸고 다른 것은 건드리지 않습니다.\n\n| 상수 | 현재 | EIP-7703 |\n| --- | --- | --- |\n| `G_CALLDATAZERO` (0 바이트당) | 4 | 12 |\n| `G_CALLDATANONZERO` (0이 아닌 바이트당) | 16 | 48 |\n\n모든 트랜잭션은 `data`의 바이트마다 이 값을 intrinsic gas의 일부로 지불합니다. 실행 gas, 스토리지, blob 가격([EIP-4844](/eip-4844/))은 그대로입니다.\n\n변경이 단순 무식하기 때문에, 데이터가 많은 트랜잭션만이 아니라 일반 컨트랙트 호출을 포함해 calldata를 담은 모든 트랜잭션의 비용이 올라갑니다.\n\n## 샘플 코드\n\n변경 전후의 intrinsic calldata 비용(TypeScript, 의존성 없음):\n\n```ts\nfunction calldataGas(data: Uint8Array, zero: number, nonZero: number): number {\n  let gas = 0;\n  for (const b of data) gas += b === 0 ? zero : nonZero;\n  return gas;\n}\n\nconst hex = \"a9059cbb000000000000000000000000d8da6bf26964af9d7eed9e10e5d4ba5f1c42e8f20000000000000000000000000000000000000000000000000de0b6b3a7640000\";\nconst data = Uint8Array.from(hex.match(/../g)!.map((h) =\u003e parseInt(h, 16)));\n\nconsole.log(\"today:   \", calldataGas(data, 4, 16));  // 21000 + this = intrinsic gas\nconsole.log(\"EIP-7703:\", calldataGas(data, 12, 48)); // exactly 3x\n```\n\ncalldata만으로 채웠을 때의 대략적인 최대 블록 크기:\n\n```python\ngas_limit = 30_000_000   # illustrative gas limit\nprint(gas_limit // 16)   # ~1.87 MB of non-zero calldata today\nprint(gas_limit // 48)   # ~0.62 MB under EIP-7703\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 이더리움은 대신 [EIP-7623](/eip-7623/)(Pectra)을 채택했습니다. 이는 대부분 데이터이고 실행은 거의 하지 않는 트랜잭션에만 적용되는 더 높은 *하한* 가격을 도입합니다. 일반 트랜잭션의 비용은 그대로 두면서 최악의 경우 블록 크기를 제한합니다. [EIP-7976](/eip-7976/)은 그 하한을 더 올리자고 제안합니다.\n- 스펙은 활성화 시 이전 가격으로 gas 한도를 추정한 일부 트랜잭션이 gas 부족으로 실패할 수 있다고 밝힙니다. 지갑은 포크 전에 새 상수로 추정해야 합니다.\n- blob이 아니라 calldata로 데이터를 계속 게시하는 롤업은 일률적인 3배 인상의 타격을 가장 크게 받았을 것입니다.\n"},"zh":{"lang":"zh","tldr":"提议将 calldata 的 gas 提高到三倍（零字节 4→12，非零字节 16→48），以缩小最坏情况下的区块大小，从而可以安全地提高 gas 上限。","tags":["gas","calldata","block-size","core","scaling"],"related":[7623,7976,4844,2028],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7703/","markdown":"## 它解决什么问题？\n\n以太坊区块在字节数上的最大可能值，是在区块被廉价的 calldata 填满时达到的。大区块在网络中传播更慢，因此这种最坏情况，而不是典型使用，是阻碍提高区块 gas 上限的因素之一。\n\nEIP-7703 采取了最直接的办法：让 calldata 贵三倍。在 gas 上限不变的情况下，最大区块大小缩小约三分之二，这就为提高 gas 上限留出了空间，同时不会让最坏情况变得更糟。\n\n## 它如何运作\n\n这个提案只改动两个常量，其他一概不动：\n\n| 常量 | 现在 | EIP-7703 |\n| --- | --- | --- |\n| `G_CALLDATAZERO`（每个零字节） | 4 | 12 |\n| `G_CALLDATANONZERO`（每个非零字节） | 16 | 48 |\n\n每笔交易都要按 `data` 的每个字节支付这笔费用，作为其 intrinsic gas 的一部分。执行 gas、存储和 blob 定价（[EIP-4844](/eip-4844/)）都不受影响。\n\n由于这一改动比较粗暴，它会提高所有携带 calldata 的交易的成本，包括普通的合约调用，而不仅仅是数据密集型交易。\n\n## 示例代码\n\n变更前后的 intrinsic calldata 成本（TypeScript，无依赖）：\n\n```ts\nfunction calldataGas(data: Uint8Array, zero: number, nonZero: number): number {\n  let gas = 0;\n  for (const b of data) gas += b === 0 ? zero : nonZero;\n  return gas;\n}\n\nconst hex = \"a9059cbb000000000000000000000000d8da6bf26964af9d7eed9e10e5d4ba5f1c42e8f20000000000000000000000000000000000000000000000000de0b6b3a7640000\";\nconst data = Uint8Array.from(hex.match(/../g)!.map((h) =\u003e parseInt(h, 16)));\n\nconsole.log(\"today:   \", calldataGas(data, 4, 16));  // 21000 + this = intrinsic gas\nconsole.log(\"EIP-7703:\", calldataGas(data, 12, 48)); // exactly 3x\n```\n\n仅由 calldata 填满时的最大区块大小粗略估算：\n\n```python\ngas_limit = 30_000_000   # illustrative gas limit\nprint(gas_limit // 16)   # ~1.87 MB of non-zero calldata today\nprint(gas_limit // 48)   # ~0.62 MB under EIP-7703\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。以太坊转而采用了 [EIP-7623](/eip-7623/)（Pectra），它引入了更高的*下限*价格，仅适用于大部分是数据、几乎不做执行的交易。这样既限制了最坏情况下的区块大小，又不改变普通交易的成本。[EIP-7976](/eip-7976/) 提议进一步提高这一下限。\n- 规范指出，激活后，如果某些交易的 gas 上限是按旧价格估算的，它们可能会耗尽 gas；钱包需要在分叉之前就按新常量进行估算。\n- 仍然以 calldata 而非 blob 发布数据的 rollup，本会受到一刀切三倍上涨的最大冲击。\n"}}}
