{"eip":8037,"title":"State Creation Gas Cost Increase","description":"Harmonization, increase and separate metering of state creation gas costs to mitigate state growth and unblock scaling","authors":["Maria Silva (@misilva73)","Carlos Perez (@CPerezz)","Jochem Brouwer (@jochem-brouwer)","Ansgar Dietrichs (@adietrichs)","Łukasz Rozmej (@LukaszRozmej)","Anders Elowsson (@anderselowsson)","Francesco D'Amato (@fradamt)","Dragan Rakita (@rakita)","Paweł Bylica (@chfast)","Spencer Taylor-Brown (@spencer-tb)","Gary Rong (@rjl493456442)"],"status":"Last Call","type":"Standards Track","category":"Core","created":"2025-10-01","requires":[161,684,2780,6780,7623,7702,7825,7928,7976,8038],"discussionsTo":"https://ethereum-magicians.org/t/eip-8037-state-creation-gas-cost-increase/25694","repo":"EIPs","label":"EIP-8037","officialUrl":"https://eips.ethereum.org/EIPS/eip-8037","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8037.md","url":"https://eips.huatuo.xyz/eip-8037/","tldr":{"en":"Raises and harmonizes the gas cost of creating new state (accounts, storage slots, contract code) via a single cost-per-state-byte, and meters it as a separate 'state gas' dimension so gas limits can rise without runaway state growth.","ja":"新しい状態（アカウント、ストレージスロット、コントラクトコード）の作成にかかる gas コストを、状態 1 バイトあたりの単一コストに統一して引き上げ、別個の「state gas」という次元として計量することで、状態の暴走的な肥大化なしに gas limit を引き上げられるようにする。","ko":"새 상태(계정, 스토리지 슬롯, 컨트랙트 코드)를 만드는 gas 비용을 상태 바이트당 단일 비용으로 통일해 높이고, 별도의 'state gas' 차원으로 계량해 상태가 걷잡을 수 없이 커지지 않으면서 gas 한도를 올릴 수 있게 한다.","zh":"通过统一的\"每状态字节成本\"，提高并统一创建新状态（账户、存储槽、合约代码）的 gas 成本，并将其作为独立的\"state gas\"维度计量，使 gas 上限可以提高而不会造成状态失控增长。"},"tags":["gas","state-growth","repricing","core","glamsterdam"],"explainers":{"en":{"lang":"en","tldr":"Raises and harmonizes the gas cost of creating new state (accounts, storage slots, contract code) via a single cost-per-state-byte, and meters it as a separate 'state gas' dimension so gas limits can rise without runaway state growth.","tags":["gas","state-growth","repricing","core","glamsterdam"],"related":[8038,2780,7825,7702,7773],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8037/","markdown":"## What problem does it solve?\n\nEvery new account, storage slot or contract byte becomes part of the state that every node stores forever. Today those costs are inconsistent: contract code costs about 200 gas per new byte while a new storage slot works out to about 313 gas per byte, and deploying duplicate bytecode costs the same as unique code.\n\nThey are also too cheap for a higher-throughput Ethereum. The spec reports that after the gas limit went from 30M to 60M, daily new state more than tripled, and projects that at much higher gas limits the state would soon reach sizes where node performance degrades. EIP-8037 makes state creation cost what it should, so the rest of execution can keep scaling.\n\n## How it works\n\n**One price per byte.** A new parameter `CPSB` (cost per state byte) is set to 1530, derived from targeting about 120 GiB of state growth per year at a 150M gas limit. Each operation charges `bytes × CPSB`:\n\n| Operation | Today | State gas under EIP-8037 |\n| --- | --- | --- |\n| New account (`CREATE`, value to empty account) | 25,000 / 32,000 | 120 × CPSB = 183,600 |\n| New storage slot (`SSTORE` 0→x) | 20,000 | 64 × CPSB = 97,920 |\n| Contract code | 200 / byte | CPSB / byte |\n| EIP-7702 authorization base | 12,500 | 23 × CPSB |\n\nExecution costs for the same operations (hashing, account writes) are charged separately and defined in [EIP-8038](/eip-8038/).\n\n- **Two gas dimensions.** Gas is split into *execution gas* and *state gas*. The per-transaction cap of [EIP-7825](/eip-7825/) applies only to execution gas, so large deployments are no longer blocked by it; `tx.gas` itself is capped at `2^32 - 1`.\n- **Reservoir model.** A transaction still has one `gas` limit. Gas above the execution cap goes into a `state_gas_reservoir`, which pays state charges first; after that they come from normal `gas_left`. Undone state creation (e.g. a slot set then cleared) is refilled.\n- **Block accounting.** A block tracks both dimensions; its `gas_used` is the larger of the two, and that value drives fullness and the base fee.\n\n## Sample code\n\nHow a transaction's gas is split at the start of execution (from the spec):\n\n```python\nevm_gas              = tx.gas - intrinsic_gas\nexecution_gas_budget = TX_MAX_GAS_LIMIT - intrinsic_gas   # EIP-7825 cap\ngas_left             = min(execution_gas_budget, evm_gas)\nstate_gas_reservoir  = evm_gas - gas_left                 # only above the cap\n\n# Block level\ngas_used = max(block_execution_gas_used, block_state_gas_used)\nassert gas_used \u003c= block.gas_limit\n```\n\n## Things to know\n\n- Status is **Last Call**, and it is listed as scheduled for the Glamsterdam upgrade in [EIP-7773](/eip-7773/). Some referenced execution costs from EIP-8038 are noted as not yet final.\n- Creating state gets several times more expensive (the spec estimates about 7× for a new account, 5× for a new slot, 8× for a 24 KB contract). Wallets and `eth_estimateGas` must be updated.\n- `GAS` returns only `gas_left`, not the reservoir, and `gas_left` can now *increase* after a refill. Code that measures work as the difference of two `gasleft()` reads may get a negative result; [ERC-4337](/eip-4337/) bundlers must account for state gas explicitly.\n- Pre-signed deployments of deterministic factories with fixed gas limits will fail on new networks that start with this EIP; existing mainnet/L2 deployments are unaffected.\n- It relies on [EIP-2780](/eip-2780/) to charge account creation when ETH is sent to a new address, avoiding a cheap 21,000-gas loophole.\n"},"ja":{"lang":"ja","tldr":"新しい状態（アカウント、ストレージスロット、コントラクトコード）の作成にかかる gas コストを、状態 1 バイトあたりの単一コストに統一して引き上げ、別個の「state gas」という次元として計量することで、状態の暴走的な肥大化なしに gas limit を引き上げられるようにする。","tags":["gas","state-growth","repricing","core","glamsterdam"],"related":[8038,2780,7825,7702,7773],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8037/","markdown":"## 何を解決するのか\n\n新しいアカウント、ストレージスロット、コントラクトのバイトは、すべてのノードが永久に保存する状態の一部になります。現状、そのコストは一貫していません。コントラクトコードは新規 1 バイトあたり約 200 gas ですが、新しいストレージスロットはバイトあたり約 313 gas に相当し、重複したバイトコードのデプロイも固有のコードと同じコストです。\n\nさらに、スループットの高い Ethereum にとっては安すぎます。仕様によると、gas limit が 3,000 万から 6,000 万に上がった後、1 日あたりの新規状態は 3 倍以上に増えました。gas limit がさらに大きく上がれば、ノードの性能が低下するほどの状態サイズにすぐ達すると予測しています。EIP-8037 は、状態の作成に本来かかるべきコストを負担させ、実行の他の部分がスケールし続けられるようにします。\n\n## 仕組み\n\n**バイトあたりの価格を 1 つに。** 新しいパラメータ `CPSB`（cost per state byte）を 1530 に設定します。これは、gas limit 1 億 5,000 万で年間約 120 GiB の状態増加を目標として導出された値です。各操作は `bytes × CPSB` を課金します。\n\n| 操作 | 現在 | EIP-8037 での state gas |\n| --- | --- | --- |\n| 新規アカウント（`CREATE`、空のアカウントへの送金） | 25,000 / 32,000 | 120 × CPSB = 183,600 |\n| 新規ストレージスロット（`SSTORE` 0→x） | 20,000 | 64 × CPSB = 97,920 |\n| コントラクトコード | 200 / バイト | CPSB / バイト |\n| EIP-7702 認可の基本料 | 12,500 | 23 × CPSB |\n\n同じ操作の実行コスト（ハッシュ処理、アカウント書き込み）は別途課金され、[EIP-8038](/eip-8038/) で定義されています。\n\n- **2 つの gas 次元。** gas は *execution gas* と *state gas* に分割されます。[EIP-7825](/eip-7825/) のトランザクションごとの上限は execution gas にのみ適用されるため、大きなデプロイがそれに阻まれなくなります。`tx.gas` 自体の上限は `2^32 - 1` です。\n- **リザーバーモデル。** トランザクションの `gas` 上限は 1 つのままです。実行の上限を超える gas は `state_gas_reservoir` に入り、state の課金はまずここから支払われ、その後は通常の `gas_left` から支払われます。取り消された状態の作成（たとえば、スロットを設定してからクリアした場合）は補充されます。\n- **ブロックの会計。** ブロックは両方の次元を追跡します。その `gas_used` は 2 つのうち大きい方で、この値がブロックの充填度と base fee を決めます。\n\n## サンプルコード\n\n実行開始時にトランザクションの gas がどう分割されるか（仕様より）:\n\n```python\nevm_gas              = tx.gas - intrinsic_gas\nexecution_gas_budget = TX_MAX_GAS_LIMIT - intrinsic_gas   # EIP-7825 cap\ngas_left             = min(execution_gas_budget, evm_gas)\nstate_gas_reservoir  = evm_gas - gas_left                 # only above the cap\n\n# Block level\ngas_used = max(block_execution_gas_used, block_state_gas_used)\nassert gas_used \u003c= block.gas_limit\n```\n\n## 知っておくべきこと\n\n- ステータスは **Last Call** で、[EIP-7773](/eip-7773/) では Glamsterdam アップグレードに予定されているものとして挙げられています。EIP-8038 から参照している実行コストの一部は、まだ確定していないと記されています。\n- 状態の作成は数倍高くなります（仕様の見積もりでは、新規アカウントで約 7 倍、新規スロットで 5 倍、24 KB のコントラクトで 8 倍）。ウォレットと `eth_estimateGas` の更新が必要です。\n- `GAS` が返すのは `gas_left` だけでリザーバーは含まれず、補充後には `gas_left` が*増える*ことがあります。2 回の `gasleft()` の読み取り値の差で作業量を測るコードは、負の結果になる可能性があります。[ERC-4337](/eip-4337/) の Bundler は state gas を明示的に考慮する必要があります。\n- gas limit が固定された決定論的ファクトリーの事前署名済みデプロイは、この EIP で開始する新しいネットワークでは失敗します。既存のメインネット／L2 のデプロイには影響しません。\n- 新しいアドレスに ETH を送るときにアカウント作成を課金するため [EIP-2780](/eip-2780/) に依存しており、21,000 gas という安価な抜け道を避けています。\n"},"ko":{"lang":"ko","tldr":"새 상태(계정, 스토리지 슬롯, 컨트랙트 코드)를 만드는 gas 비용을 상태 바이트당 단일 비용으로 통일해 높이고, 별도의 'state gas' 차원으로 계량해 상태가 걷잡을 수 없이 커지지 않으면서 gas 한도를 올릴 수 있게 한다.","tags":["gas","state-growth","repricing","core","glamsterdam"],"related":[8038,2780,7825,7702,7773],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8037/","markdown":"## 어떤 문제를 해결하나요?\n\n새 계정, 스토리지 슬롯, 컨트랙트 바이트는 모두 모든 노드가 영구히 저장하는 상태의 일부가 됩니다. 현재 이 비용은 일관되지 않습니다. 컨트랙트 코드는 새 바이트당 약 200 gas인 반면 새 스토리지 슬롯은 바이트당 약 313 gas에 해당하고, 중복된 바이트코드를 배포하는 비용도 고유한 코드와 같습니다.\n\n또한 처리량이 더 높은 이더리움에는 너무 쌉니다. 사양은 gas 한도가 3,000만에서 6,000만으로 올라간 뒤 하루 신규 상태가 3배 넘게 늘었다고 보고하며, gas 한도가 훨씬 더 높아지면 노드 성능이 떨어지는 상태 크기에 곧 도달할 것으로 예측합니다. EIP-8037은 상태 생성에 마땅한 비용을 부과해 실행의 나머지 부분이 계속 확장될 수 있게 합니다.\n\n## 어떻게 동작하나요?\n\n**바이트당 하나의 가격.** 새 파라미터 `CPSB`(cost per state byte)는 1530으로 설정되며, 이는 gas 한도 1억 5,000만에서 연간 약 120 GiB의 상태 증가를 목표로 도출한 값입니다. 각 연산은 `bytes × CPSB`를 부과합니다.\n\n| 연산 | 현재 | EIP-8037의 state gas |\n| --- | --- | --- |\n| 새 계정(`CREATE`, 빈 계정으로 value 전송) | 25,000 / 32,000 | 120 × CPSB = 183,600 |\n| 새 스토리지 슬롯(`SSTORE` 0→x) | 20,000 | 64 × CPSB = 97,920 |\n| 컨트랙트 코드 | 200 / 바이트 | CPSB / 바이트 |\n| EIP-7702 인가 기본 비용 | 12,500 | 23 × CPSB |\n\n같은 연산의 실행 비용(해싱, 계정 쓰기)은 별도로 부과되며 [EIP-8038](/eip-8038/)에 정의되어 있습니다.\n\n- **두 가지 gas 차원.** gas는 *execution gas*와 *state gas*로 나뉩니다. [EIP-7825](/eip-7825/)의 트랜잭션당 상한은 execution gas에만 적용되므로 큰 배포가 더는 그 상한에 막히지 않습니다. `tx.gas` 자체의 상한은 `2^32 - 1`입니다.\n- **리저버 모델.** 트랜잭션에는 여전히 `gas` 한도가 하나입니다. 실행 상한을 넘는 gas는 `state_gas_reservoir`로 들어가 state 비용을 먼저 지불하고, 그다음에는 일반 `gas_left`에서 차감됩니다. 취소된 상태 생성(예: 슬롯을 설정했다가 지운 경우)은 다시 채워집니다.\n- **블록 회계.** 블록은 두 차원을 모두 추적하며, `gas_used`는 둘 중 큰 값이고 이 값이 블록의 충만도와 base fee를 결정합니다.\n\n## 샘플 코드\n\n실행 시작 시 트랜잭션의 gas가 어떻게 나뉘는지(사양에서 발췌):\n\n```python\nevm_gas              = tx.gas - intrinsic_gas\nexecution_gas_budget = TX_MAX_GAS_LIMIT - intrinsic_gas   # EIP-7825 cap\ngas_left             = min(execution_gas_budget, evm_gas)\nstate_gas_reservoir  = evm_gas - gas_left                 # only above the cap\n\n# Block level\ngas_used = max(block_execution_gas_used, block_state_gas_used)\nassert gas_used \u003c= block.gas_limit\n```\n\n## 알아둘 점\n\n- 상태는 **Last Call**이며, [EIP-7773](/eip-7773/)에서 Glamsterdam 업그레이드에 예정된 것으로 나열되어 있습니다. EIP-8038에서 참조하는 일부 실행 비용은 아직 확정되지 않았다고 명시되어 있습니다.\n- 상태 생성이 몇 배 더 비싸집니다(사양 추정으로 새 계정은 약 7배, 새 슬롯은 5배, 24 KB 컨트랙트는 8배). 지갑과 `eth_estimateGas`를 업데이트해야 합니다.\n- `GAS`는 리저버가 아니라 `gas_left`만 반환하며, 리필 후에는 `gas_left`가 *증가*할 수 있습니다. 두 번의 `gasleft()` 읽기 값의 차이로 작업량을 측정하는 코드는 음수 결과를 얻을 수 있으며, [ERC-4337](/eip-4337/) 번들러는 state gas를 명시적으로 고려해야 합니다.\n- gas 한도가 고정된 결정론적 팩토리의 사전 서명된 배포는 이 EIP로 시작하는 새 네트워크에서 실패합니다. 기존 메인넷/L2 배포는 영향을 받지 않습니다.\n- 새 주소로 ETH를 보낼 때 계정 생성 비용을 부과하기 위해 [EIP-2780](/eip-2780/)에 의존하며, 21,000 gas라는 값싼 허점을 피합니다.\n"},"zh":{"lang":"zh","tldr":"通过统一的\"每状态字节成本\"，提高并统一创建新状态（账户、存储槽、合约代码）的 gas 成本，并将其作为独立的\"state gas\"维度计量，使 gas 上限可以提高而不会造成状态失控增长。","tags":["gas","state-growth","repricing","core","glamsterdam"],"related":[8038,2780,7825,7702,7773],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8037/","markdown":"## 它解决什么问题？\n\n每个新账户、存储槽或合约字节，都会成为每个节点永久保存的状态的一部分。如今这些成本并不一致：合约代码每新增一个字节约 200 gas，而一个新存储槽折合每字节约 313 gas，部署重复的字节码与部署独一无二的代码花费相同。\n\n对于更高吞吐量的以太坊来说，这些成本也太低了。规范指出，gas 上限从 3000 万提高到 6000 万后，每日新增状态增长了三倍多，并预测在高得多的 gas 上限下，状态很快会达到使节点性能下降的规模。EIP-8037 让创建状态付出应有的代价，使执行的其他部分得以继续扩展。\n\n## 它如何运作\n\n**每字节统一价格。** 新参数 `CPSB`（cost per state byte，每状态字节成本）设为 1530，其推导依据是在 1.5 亿 gas 上限下每年约 120 GiB 的状态增长目标。每个操作按 `bytes × CPSB` 收费：\n\n| 操作 | 现状 | EIP-8037 下的 state gas |\n| --- | --- | --- |\n| 新账户（`CREATE`，向空账户转账） | 25,000 / 32,000 | 120 × CPSB = 183,600 |\n| 新存储槽（`SSTORE` 0→x） | 20,000 | 64 × CPSB = 97,920 |\n| 合约代码 | 200 / 字节 | CPSB / 字节 |\n| EIP-7702 授权基础费用 | 12,500 | 23 × CPSB |\n\n相同操作的执行成本（哈希、账户写入）单独收费，定义在 [EIP-8038](/eip-8038/) 中。\n\n- **两个 gas 维度。** gas 被拆分为 *execution gas* 和 *state gas*。[EIP-7825](/eip-7825/) 的单笔交易上限只适用于 execution gas，因此大型部署不再受其阻碍；`tx.gas` 本身的上限是 `2^32 - 1`。\n- **储备池模型。** 一笔交易仍然只有一个 `gas` 上限。超出执行上限的 gas 进入 `state_gas_reservoir`，state 费用先从中支付，用完后再从常规的 `gas_left` 中扣除。被撤销的状态创建（例如设置后又清除的存储槽）会被补回。\n- **区块记账。** 区块同时跟踪两个维度；其 `gas_used` 取二者中较大的一个，该值决定区块的充满程度和 base fee。\n\n## 示例代码\n\n执行开始时一笔交易的 gas 如何拆分（来自规范）：\n\n```python\nevm_gas              = tx.gas - intrinsic_gas\nexecution_gas_budget = TX_MAX_GAS_LIMIT - intrinsic_gas   # EIP-7825 cap\ngas_left             = min(execution_gas_budget, evm_gas)\nstate_gas_reservoir  = evm_gas - gas_left                 # only above the cap\n\n# Block level\ngas_used = max(block_execution_gas_used, block_state_gas_used)\nassert gas_used \u003c= block.gas_limit\n```\n\n## 需要注意\n\n- 状态为 **Last Call**，并在 [EIP-7773](/eip-7773/) 中被列为计划在 Glamsterdam 升级中上线。文中指出，引用自 EIP-8038 的部分执行成本尚未最终确定。\n- 创建状态将贵出数倍（规范估计新账户约 7 倍，新存储槽 5 倍，24 KB 合约 8 倍）。钱包和 `eth_estimateGas` 必须更新。\n- `GAS` 只返回 `gas_left`，不包含储备池，而且补充之后 `gas_left` 可能*增加*。把两次 `gasleft()` 读数之差当作工作量的代码可能得到负数；[ERC-4337](/eip-4337/) bundler 必须明确计入 state gas。\n- 使用固定 gas 上限、预签名的确定性工厂部署，在以本 EIP 启动的新网络上会失败；已有的主网/L2 部署不受影响。\n- 它依赖 [EIP-2780](/eip-2780/) 在向新地址发送 ETH 时收取账户创建费用，避免出现 21,000 gas 的廉价漏洞。\n"}},"requiredBy":[2780,3298,8007,8038,8046,8075,8141,8188,8250,8295,8296,8298,8357,8358,8360,8368,8372]}
