{"eip":8011,"title":"Multidimensional Gas Metering","description":"Gas accounting by EVM resource, increasing throughput and improving resource usage controls, with minimal changes to the protocol and UX","authors":["Maria Silva (@misilva73)","Davide Crapis (@dcrapis)","Anders Elowsson (@anderselowsson)","Toni Wahrstätter (@nerolation)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-08-22","requires":[1559],"discussionsTo":"https://ethereum-magicians.org/t/eip-8011-multidimensional-gas-metering/25260","repo":"EIPs","label":"EIP-8011","officialUrl":"https://eips.ethereum.org/EIPS/eip-8011","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8011.md","url":"https://eips.huatuo.xyz/eip-8011/","tldr":{"en":"Meters gas separately per resource (compute, state access, size, memory, state growth, history) and fills blocks by the busiest resource only, raising throughput while users still see one gas limit and one fee.","ja":"ガスをリソースごと（計算、状態アクセス、サイズ、メモリ、状態増加、履歴）に別々に計測し、最も混んでいるリソースだけでブロックを埋める。ユーザーには引き続きガス上限と手数料が 1 つに見えたまま、スループットを引き上げる。","ko":"가스를 리소스별(연산, 상태 접근, 크기, 메모리, 상태 증가, 히스토리)로 따로 계량하고 가장 바쁜 리소스만으로 블록을 채워, 사용자에게는 여전히 가스 한도와 수수료가 하나로 보이는 상태에서 처리량을 높인다.","zh":"按资源（计算、状态访问、大小、内存、状态增长、历史）分别计量 gas，并仅按最繁忙的资源来填充区块，在用户仍只看到一个 gas 上限和一种手续费的情况下提高吞吐量。"},"tags":["gas","scaling","fee-market","multidimensional","core"],"explainers":{"en":{"lang":"en","tldr":"Meters gas separately per resource (compute, state access, size, memory, state growth, history) and fills blocks by the busiest resource only, raising throughput while users still see one gas limit and one fee.","tags":["gas","scaling","fee-market","multidimensional","core"],"related":[1559,7999,7805,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8011/","markdown":"## What problem does it solve?\n\nToday every operation's cost is added into one number, and a block is \"full\" when that sum reaches the gas limit. But a block full of computation and a block full of storage writes stress very different parts of a node. Because everything shares one budget, a block heavy in one resource leaves the others idle, and the single limit must be set conservatively for the worst mix.\n\nEIP-8011 separates **pricing** from **metering**. Transactions are priced exactly as before, but the block tracks gas per resource, and only the most-used resource counts toward the block limit. Transactions that use different resources can then share a block, increasing throughput without changing what users see.\n\n## How it works\n\n- **Cost vectors.** Every operation gets a 6-part cost: `(compute, access, size, memory, state, history)`. Pure compute opcodes put their whole cost in `compute`; memory-expanding opcodes split it between `compute` and `memory`. Assignments for state-touching opcodes, `LOG` opcodes and intrinsic transaction costs are still TBD, pending benchmarks.\n- **Transactions are unchanged.** A transaction still has one `gas_limit`, pays fees on one `gas_used` (the sum of all six parts), and runs out of gas the same way. Clients additionally record a `gas_used_vector`.\n- **Blocks use the bottleneck.** The block header gains a `max_gas_metered` field: the largest of the six per-resource totals across the block. Validity becomes `max_gas_metered \u003c= gas_limit`.\n- **Base fee follows the bottleneck.** The [EIP-1559](/eip-1559/) update rule uses `parent.max_gas_metered` in place of `parent.gas_used`.\n\nSo the gas limit and target now mean \"how much gas any single resource may consume per block\".\n\n## Sample code\n\nComputing the new header field, simplified from the spec:\n\n```python\nDIMS = 6  # compute, access, size, memory, state, history\n\ndef compute_block_max_gas_metered(block) -\u003e int:\n    totals = [0] * DIMS\n    for tx in block.transactions:\n        gas_used, gas_used_vector = execute_transaction(tx)\n        totals = [a + b for a, b in zip(totals, gas_used_vector)]\n    return max(totals)\n\nassert block.max_gas_metered \u003c= block.gas_limit\ngas_used_delta = parent.max_gas_metered - parent.gas_target  # feeds the base fee update\n```\n\nIllustrative example: with a hypothetical 60M limit, a block using 50M compute and 40M state gas is valid (bottleneck 50M), even though the sum is 90M. Each transaction in it still paid for its full summed gas.\n\n## Things to know\n\n- **Status: Draft.** Large parts of the cost table are TBD, so the actual throughput gain is not yet known.\n- Requires a hard fork, and adds a field to the block header.\n- Blobs are excluded; they already have their own fee market ([EIP-4844](/eip-4844/)).\n- It is designed as a stepping stone toward full multidimensional pricing such as [EIP-7999](/eip-7999/), where each resource also gets its own base fee.\n- Block building gets harder: builders must balance six dimensions. The authors argue simple greedy heuristics remain effective, limiting centralisation pressure.\n- With a lower equilibrium base fee, stuffing a block on one cheap resource gets cheaper, which slightly weakens censorship resistance under FOCIL ([EIP-7805](/eip-7805/)).\n- State and history growth are long-term limits, so their opcodes may need higher prices to keep growth in check as throughput rises.\n"},"ja":{"lang":"ja","tldr":"ガスをリソースごと（計算、状態アクセス、サイズ、メモリ、状態増加、履歴）に別々に計測し、最も混んでいるリソースだけでブロックを埋める。ユーザーには引き続きガス上限と手数料が 1 つに見えたまま、スループットを引き上げる。","tags":["gas","scaling","fee-market","multidimensional","core"],"related":[1559,7999,7805,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8011/","markdown":"## 何を解決するのか\n\n現在は、すべての操作のコストが 1 つの数値に足し合わされ、その合計がガス上限に達するとブロックは「満杯」になります。しかし、計算で埋まったブロックとストレージ書き込みで埋まったブロックでは、ノードの負荷がかかる部分がまったく異なります。すべてが 1 つの予算を共有しているため、あるリソースに偏ったブロックでは他のリソースが遊んでしまい、単一の上限は最悪の組み合わせを想定して控えめに設定せざるを得ません。\n\nEIP-8011 は**価格付け**と**計測**を切り離します。トランザクションの価格付けはこれまでとまったく同じですが、ブロックはリソースごとにガスを追跡し、最も多く使われたリソースだけがブロックの上限に対してカウントされます。これにより、異なるリソースを使うトランザクション同士が 1 つのブロックを共有でき、ユーザーに見えるものを変えずにスループットが向上します。\n\n## 仕組み\n\n- **コストベクトル。** すべての操作に 6 つの要素からなるコスト `(compute, access, size, memory, state, history)` が割り当てられます。純粋な計算の opcode は全コストを `compute` に入れ、メモリを拡張する opcode は `compute` と `memory` に分割します。状態に触れる opcode、`LOG` opcode、トランザクション固有のコストへの割り当ては、ベンチマークを待ってまだ未定です。\n- **トランザクションは変わらない。** トランザクションには引き続き `gas_limit` が 1 つあり、1 つの `gas_used`（6 要素の合計）に対して手数料を支払い、ガス切れも同じ方法で起こります。クライアントは加えて `gas_used_vector` を記録します。\n- **ブロックはボトルネックを使う。** ブロックヘッダーに `max_gas_metered` フィールドが加わります。これはブロック全体での 6 つのリソース別合計のうち最大のものです。有効性の条件は `max_gas_metered \u003c= gas_limit` になります。\n- **ベースフィーはボトルネックに従う。** [EIP-1559](/eip-1559/) の更新ルールは、`parent.gas_used` の代わりに `parent.max_gas_metered` を使います。\n\nつまり、ガス上限とターゲットは「1 ブロックあたり、どれか 1 つのリソースが消費してよいガス量」を意味するようになります。\n\n## サンプルコード\n\n仕様を簡略化した、新しいヘッダーフィールドの計算:\n\n```python\nDIMS = 6  # compute, access, size, memory, state, history\n\ndef compute_block_max_gas_metered(block) -\u003e int:\n    totals = [0] * DIMS\n    for tx in block.transactions:\n        gas_used, gas_used_vector = execute_transaction(tx)\n        totals = [a + b for a, b in zip(totals, gas_used_vector)]\n    return max(totals)\n\nassert block.max_gas_metered \u003c= block.gas_limit\ngas_used_delta = parent.max_gas_metered - parent.gas_target  # feeds the base fee update\n```\n\n例（説明用）: 仮に上限を 6,000 万とすると、計算に 5,000 万、状態に 4,000 万のガスを使うブロックは、合計が 9,000 万であってもボトルネックが 5,000 万なので有効です。その中の各トランザクションは、合計ガス全額を支払っています。\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** コスト表の大部分が未定のため、実際のスループット向上幅はまだわかっていません。\n- ハードフォークが必要で、ブロックヘッダーにフィールドが追加されます。\n- blob は対象外です。blob にはすでに独自の手数料市場があります（[EIP-4844](/eip-4844/)）。\n- [EIP-7999](/eip-7999/) のような完全な多次元価格付けへの足がかりとして設計されています。そこでは各リソースが独自のベースフィーも持ちます。\n- ブロック構築は難しくなります。ビルダーは 6 つの次元のバランスを取る必要があります。著者は、単純な貪欲法のヒューリスティクスでも有効性は保たれ、中央集権化の圧力は抑えられると主張しています。\n- 均衡時のベースフィーが下がると、1 つの安価なリソースでブロックを埋め尽くすコストが下がり、FOCIL（[EIP-7805](/eip-7805/)）下での検閲耐性がわずかに弱まります。\n- 状態と履歴の増加は長期的な制約であるため、スループットが上がるにつれて増加を抑えるには、それらの opcode の価格引き上げが必要になる可能性があります。\n"},"ko":{"lang":"ko","tldr":"가스를 리소스별(연산, 상태 접근, 크기, 메모리, 상태 증가, 히스토리)로 따로 계량하고 가장 바쁜 리소스만으로 블록을 채워, 사용자에게는 여전히 가스 한도와 수수료가 하나로 보이는 상태에서 처리량을 높인다.","tags":["gas","scaling","fee-market","multidimensional","core"],"related":[1559,7999,7805,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8011/","markdown":"## 어떤 문제를 해결하나요?\n\n현재는 모든 연산의 비용이 하나의 숫자로 합산되고, 그 합이 가스 한도에 도달하면 블록이 \"가득 찼다\"고 봅니다. 하지만 연산으로 가득 찬 블록과 스토리지 쓰기로 가득 찬 블록은 노드의 서로 다른 부분에 부담을 줍니다. 모든 것이 하나의 예산을 공유하기 때문에 한 리소스에 치우친 블록은 다른 리소스를 놀리게 되고, 단일 한도는 최악의 조합에 맞춰 보수적으로 정해져야 합니다.\n\nEIP-8011은 **가격 책정**과 **계량**을 분리합니다. 트랜잭션의 가격은 이전과 똑같이 매겨지지만, 블록은 리소스별로 가스를 추적하고 가장 많이 사용된 리소스만 블록 한도에 반영됩니다. 그러면 서로 다른 리소스를 쓰는 트랜잭션이 한 블록을 함께 쓸 수 있어, 사용자에게 보이는 것은 바꾸지 않은 채 처리량이 늘어납니다.\n\n## 어떻게 동작하나요?\n\n- **비용 벡터.** 모든 연산은 6개 요소로 된 비용 `(compute, access, size, memory, state, history)`을 가집니다. 순수 연산 opcode는 전체 비용을 `compute`에 넣고, 메모리를 확장하는 opcode는 `compute`와 `memory`로 나눕니다. 상태를 건드리는 opcode, `LOG` opcode, 트랜잭션 고유 비용의 배정은 벤치마크를 거쳐 정해질 예정이라 아직 미정입니다.\n- **트랜잭션은 그대로입니다.** 트랜잭션에는 여전히 `gas_limit`이 하나 있고, 하나의 `gas_used`(여섯 요소의 합)에 대해 수수료를 내며, 가스가 소진되는 방식도 같습니다. 클라이언트는 추가로 `gas_used_vector`를 기록합니다.\n- **블록은 병목을 기준으로 합니다.** 블록 헤더에 `max_gas_metered` 필드가 추가됩니다. 블록 전체에서 여섯 리소스별 합계 중 가장 큰 값입니다. 유효성 조건은 `max_gas_metered \u003c= gas_limit`가 됩니다.\n- **베이스 수수료는 병목을 따릅니다.** [EIP-1559](/eip-1559/)의 갱신 규칙은 `parent.gas_used` 대신 `parent.max_gas_metered`를 사용합니다.\n\n따라서 가스 한도와 목표는 이제 \"블록당 어느 한 리소스가 소비할 수 있는 가스량\"을 의미합니다.\n\n## 샘플 코드\n\n명세를 단순화한, 새 헤더 필드의 계산:\n\n```python\nDIMS = 6  # compute, access, size, memory, state, history\n\ndef compute_block_max_gas_metered(block) -\u003e int:\n    totals = [0] * DIMS\n    for tx in block.transactions:\n        gas_used, gas_used_vector = execute_transaction(tx)\n        totals = [a + b for a, b in zip(totals, gas_used_vector)]\n    return max(totals)\n\nassert block.max_gas_metered \u003c= block.gas_limit\ngas_used_delta = parent.max_gas_metered - parent.gas_target  # feeds the base fee update\n```\n\n예시(설명용): 한도를 가상으로 6천만이라고 하면, 연산 가스 5천만과 상태 가스 4천만을 사용하는 블록은 합계가 9천만이어도 병목이 5천만이므로 유효합니다. 그 안의 각 트랜잭션은 여전히 합산된 전체 가스 비용을 지불했습니다.\n\n## 알아둘 점\n\n- **상태: Draft.** 비용 표의 상당 부분이 미정이므로 실제 처리량 증가폭은 아직 알 수 없습니다.\n- 하드 포크가 필요하며 블록 헤더에 필드가 추가됩니다.\n- blob은 제외됩니다. blob에는 이미 자체 수수료 시장이 있습니다([EIP-4844](/eip-4844/)).\n- [EIP-7999](/eip-7999/)처럼 각 리소스가 자체 베이스 수수료도 갖는 완전한 다차원 가격 책정으로 가는 디딤돌로 설계되었습니다.\n- 블록 구성은 더 어려워집니다. 빌더가 여섯 차원의 균형을 맞춰야 하기 때문입니다. 저자들은 단순한 탐욕적 휴리스틱도 여전히 효과적이어서 중앙화 압력이 제한된다고 주장합니다.\n- 균형 상태의 베이스 수수료가 낮아지면 값싼 리소스 하나로 블록을 채우는 비용이 줄어들어, FOCIL([EIP-7805](/eip-7805/)) 아래에서의 검열 저항성이 약간 약해집니다.\n- 상태와 히스토리 증가는 장기적인 한계이므로, 처리량이 늘어날수록 증가를 억제하기 위해 해당 opcode의 가격을 더 높여야 할 수도 있습니다.\n"},"zh":{"lang":"zh","tldr":"按资源（计算、状态访问、大小、内存、状态增长、历史）分别计量 gas，并仅按最繁忙的资源来填充区块，在用户仍只看到一个 gas 上限和一种手续费的情况下提高吞吐量。","tags":["gas","scaling","fee-market","multidimensional","core"],"related":[1559,7999,7805,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8011/","markdown":"## 它解决什么问题？\n\n目前每个操作的成本都被加总成一个数字，当这个总和达到 gas 上限时，区块就算\"满\"了。但是，塞满计算的区块和塞满存储写入的区块，给节点带来压力的部分截然不同。因为所有操作共用一个预算，偏重某一种资源的区块会让其他资源闲置，而这个单一上限必须按最坏的组合保守设置。\n\nEIP-8011 把**定价**与**计量**分开。交易的定价与以前完全相同，但区块会按资源分别跟踪 gas，只有使用最多的那种资源才计入区块上限。这样，使用不同资源的交易就可以共享一个区块，在不改变用户所见内容的前提下提高吞吐量。\n\n## 它如何运作\n\n- **成本向量。** 每个操作都有一个由 6 部分组成的成本：`(compute, access, size, memory, state, history)`。纯计算 opcode 把全部成本放在 `compute` 中；扩展内存的 opcode 则在 `compute` 和 `memory` 之间拆分。涉及状态的 opcode、`LOG` opcode 以及交易固有成本的分配仍待定，等待基准测试。\n- **交易保持不变。** 交易仍然只有一个 `gas_limit`，按一个 `gas_used`（六个部分之和）支付手续费，gas 耗尽的方式也相同。客户端会额外记录一个 `gas_used_vector`。\n- **区块按瓶颈计算。** 区块头新增 `max_gas_metered` 字段：整个区块中六种资源各自总量里的最大值。有效性条件变为 `max_gas_metered \u003c= gas_limit`。\n- **基础费用跟随瓶颈。** [EIP-1559](/eip-1559/) 的更新规则用 `parent.max_gas_metered` 取代 `parent.gas_used`。\n\n因此，gas 上限和目标现在表示的是\"任何单一资源在每个区块中最多可以消耗多少 gas\"。\n\n## 示例代码\n\n计算新的区块头字段，由规范简化而来：\n\n```python\nDIMS = 6  # compute, access, size, memory, state, history\n\ndef compute_block_max_gas_metered(block) -\u003e int:\n    totals = [0] * DIMS\n    for tx in block.transactions:\n        gas_used, gas_used_vector = execute_transaction(tx)\n        totals = [a + b for a, b in zip(totals, gas_used_vector)]\n    return max(totals)\n\nassert block.max_gas_metered \u003c= block.gas_limit\ngas_used_delta = parent.max_gas_metered - parent.gas_target  # feeds the base fee update\n```\n\n示例（仅作说明）：假设上限为 6000 万，一个使用了 5000 万计算 gas 和 4000 万状态 gas 的区块是有效的（瓶颈为 5000 万），尽管总和是 9000 万。其中每笔交易仍然按其完整的加总 gas 付费。\n\n## 需要注意\n\n- **状态：Draft。** 成本表的大部分内容仍待定，因此实际的吞吐量提升尚不清楚。\n- 需要硬分叉，并且会向区块头增加一个字段。\n- 不包含 blob；blob 已经有自己的费用市场（[EIP-4844](/eip-4844/)）。\n- 它被设计为通向完整多维定价（如 [EIP-7999](/eip-7999/)）的垫脚石，在后者中每种资源还会有各自的基础费用。\n- 区块构建会变得更难：构建者必须在六个维度之间取得平衡。作者认为简单的贪心启发式算法依然有效，从而限制了中心化压力。\n- 均衡基础费用降低后，用某一种廉价资源塞满区块会变得更便宜，这会略微削弱 FOCIL（[EIP-7805](/eip-7805/)）下的抗审查能力。\n- 状态和历史增长是长期的限制，因此随着吞吐量上升，它们的 opcode 可能需要更高的价格来控制增长。\n"}},"requiredBy":[8007]}
