{"eip":7999,"title":"Unified multidimensional fee market","description":"Let transactions specify one aggregate `max_fee` budget for all resources, unify fee markets, normalize gas, and generalize EIP-7918.","authors":["Anders Elowsson (@anderselowsson)","Vitalik Buterin (@vbuterin)","Maria Silva (@misilva73)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-08-04","requires":[1559,2718,4844,7516,7691,7840,7918],"discussionsTo":"https://ethereum-magicians.org/t/eip-7999-unified-multidimensional-fee-market/25010","repo":"EIPs","label":"EIP-7999","officialUrl":"https://eips.ethereum.org/EIPS/eip-7999","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7999.md","url":"https://eips.huatuo.xyz/eip-7999/","tldr":{"en":"Proposes one fee market with a separate base fee per resource (EVM gas, blob gas, calldata), where each transaction sets a single ETH max_fee that can cover whichever resource gets expensive.","ja":"リソース（EVM gas、blob gas、calldata）ごとに別々の base fee を持つ単一の手数料市場を提案する。各トランザクションは ETH 建ての max_fee を 1 つ指定するだけで、高騰したどのリソースにも充当できる。","ko":"리소스(EVM gas, blob gas, calldata)마다 별도의 base fee를 두는 단일 수수료 시장을 제안한다. 각 트랜잭션은 ETH 단위의 max_fee 하나만 설정하며, 비싸지는 어떤 리소스에도 쓸 수 있다.","zh":"提出一个统一的费用市场，为每种资源（EVM gas、blob gas、calldata）设置独立的 base fee，每笔交易只需设置一个以 ETH 计价的 max_fee，即可覆盖任何变贵的资源。"},"tags":["gas","fees","multidimensional","calldata","core"],"explainers":{"en":{"lang":"en","tldr":"Proposes one fee market with a separate base fee per resource (EVM gas, blob gas, calldata), where each transaction sets a single ETH max_fee that can cover whichever resource gets expensive.","tags":["gas","fees","multidimensional","calldata","core"],"related":[1559,4844,7706,7918,7805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7999/","markdown":"## What problem does it solve?\n\nEthereum already prices two resources separately: regular gas under [EIP-1559](/eip-1559/) and blob gas under [EIP-4844](/eip-4844/), each with its own mechanism and its own `max_fee_per_*`. Adding more dimensions this way would get worse for users: every resource needs its own cap, and if any one is set too low the transaction can't be included, even when the user would happily pay the total.\n\nEIP-7999 lets users think in ETH instead: \"I'll pay at most X for this transaction.\" The protocol spreads that budget across resources as prices move. It also replaces the two current mechanisms with one shared, EIP-4844-style design, and adds calldata as the first new priced resource.\n\n## How it works\n\n- **New transaction type** (type number still TBD) with a single scalar `max_fee` (total wei) and `max_priority_fee_per_gas` as either one value or one per resource. `gas_limit` covers EVM gas only; blob and calldata gas are derived from the transaction itself.\n- **Three resources, three base fees:** EVM gas, blob gas and calldata gas. The header replaces `gas_limit`, `gas_used`, `base_fee_per_gas`, `blob_gas_used` and `excess_blob_gas` with vectors `gas_limits`, `gas_used`, `excess_gas`.\n- **Inclusion check:** the sum over resources of `base_fee[i] × gas_limit[i]` must be ≤ `max_fee`. Base fees for gas actually used are burned, the tip goes to the block producer, the rest is refunded.\n- **One update rule:** every base fee is `fake_exponential(1, excess_gas, BASE_FEE_UPDATE_FRACTION)`, like blob fees today. Excess gas is normalized by each resource's limit so all dimensions share one update fraction, and raising a limit doesn't jolt the price.\n- **Reserve pricing:** the [EIP-7918](/eip-7918/) idea is generalized so blob and calldata base fees can't fall far below the EVM base fee.\n- **Calldata limit** is a quarter of the EVM gas limit, with target a quarter of that. A new opcode `CALLDATABASEFEE` (`0x4b`, 2 gas) exposes its base fee.\n- **Old transactions keep working:** their per-gas caps are multiplied out into an equivalent `max_fee`, and the calldata portion is carved out of their `gas_limit`.\n\n## Sample code\n\nThe core inclusion check, from the spec's Python:\n\n```python\ndef get_required_max_fee(base_fees, tx_gas_limits):\n    # e.g. base_fees = [evm, blob, calldata], limits likewise\n    return sum(b * g for b, g in zip(base_fees, tx_gas_limits))\n\nbase_fees     = get_block_base_fees(parent)          # one per resource\ntx_gas_limits = [tx.gas_limit, blob_gas, calldata_gas]\nmax_base      = get_required_max_fee(base_fees, tx_gas_limits)\n\nassert max_base \u003c= tx.max_fee                         # one budget, any mix\nfee_to_deduct = max_base + priority_fee(tx, ...)      # refunded unused part later\n```\n\n## Things to know\n\n- Status is **Draft**; the transaction type number is still TBD and it is not scheduled for any upgrade.\n- It builds on [EIP-7706](/eip-7706/) (a separate gas type for calldata), which is Stagnant. It also defines how calldata should be treated by inclusion lists ([EIP-7805](/eip-7805/)).\n- The calldata floor pricing of EIP-7623 would be dropped in favor of the separate calldata market.\n- Wallets would need new fee estimation that tracks several base fees. Converted blob transactions would obey the aggregate `max_fee`, not their separate per-resource caps.\n- The spec also sketches longer-term paths for splitting EVM gas itself into multiple resources while keeping gas introspection workable; those parts are exploratory.\n"},"ja":{"lang":"ja","tldr":"リソース（EVM gas、blob gas、calldata）ごとに別々の base fee を持つ単一の手数料市場を提案する。各トランザクションは ETH 建ての max_fee を 1 つ指定するだけで、高騰したどのリソースにも充当できる。","tags":["gas","fees","multidimensional","calldata","core"],"related":[1559,4844,7706,7918,7805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7999/","markdown":"## 何を解決するのか\n\nEthereum はすでに 2 つのリソースを別々に価格付けしています。[EIP-1559](/eip-1559/) の通常の gas と [EIP-4844](/eip-4844/) の blob gas で、それぞれ独自の仕組みと独自の `max_fee_per_*` を持ちます。この方式で次元を増やすとユーザーにとって悪化します。リソースごとに上限が必要になり、どれか 1 つでも低すぎるとトランザクションは取り込まれません。合計額ならユーザーが喜んで支払う場合でもです。\n\nEIP-7999 では、ユーザーは ETH で考えることができます。「このトランザクションに最大でも X まで支払う」というものです。プロトコルは価格の変動に応じて、その予算をリソース間に配分します。また、現在の 2 つの仕組みを EIP-4844 方式の共通設計 1 つに置き換え、最初の新しい価格付けリソースとして calldata を追加します。\n\n## 仕組み\n\n- **新しいトランザクションタイプ**（タイプ番号は未定）。スカラー値の `max_fee`（合計 wei）と、1 つの値またはリソースごとの `max_priority_fee_per_gas` を持ちます。`gas_limit` は EVM gas のみを対象とし、blob と calldata の gas はトランザクション自体から導出されます。\n- **3 つのリソース、3 つの base fee:** EVM gas、blob gas、calldata gas。ヘッダーでは、`gas_limit`、`gas_used`、`base_fee_per_gas`、`blob_gas_used`、`excess_blob_gas` が、ベクトル `gas_limits`、`gas_used`、`excess_gas` に置き換えられます。\n- **取り込み条件の確認:** 各リソースの `base_fee[i] × gas_limit[i]` の合計が `max_fee` 以下である必要があります。実際に使われた gas に対する base fee はバーンされ、チップはブロック生成者へ、残りは返金されます。\n- **更新ルールは 1 つ:** すべての base fee は、現在の blob 手数料と同様に `fake_exponential(1, excess_gas, BASE_FEE_UPDATE_FRACTION)` で決まります。excess gas は各リソースの上限で正規化されるため、すべての次元が 1 つの更新係数を共有し、上限を引き上げても価格が急変しません。\n- **リザーブ価格:** [EIP-7918](/eip-7918/) の考え方を一般化し、blob と calldata の base fee が EVM の base fee を大きく下回らないようにします。\n- **calldata の上限** は EVM gas 上限の 4 分の 1 で、ターゲットはその 4 分の 1 です。新しいオペコード `CALLDATABASEFEE`（`0x4b`、2 gas）でその base fee を参照できます。\n- **従来のトランザクションも動作し続けます:** gas あたりの上限は掛け合わせて等価な `max_fee` に変換され、calldata 分は `gas_limit` から切り分けられます。\n\n## サンプルコード\n\n仕様の Python にある、取り込み条件の確認の中核部分:\n\n```python\ndef get_required_max_fee(base_fees, tx_gas_limits):\n    # e.g. base_fees = [evm, blob, calldata], limits likewise\n    return sum(b * g for b, g in zip(base_fees, tx_gas_limits))\n\nbase_fees     = get_block_base_fees(parent)          # one per resource\ntx_gas_limits = [tx.gas_limit, blob_gas, calldata_gas]\nmax_base      = get_required_max_fee(base_fees, tx_gas_limits)\n\nassert max_base \u003c= tx.max_fee                         # one budget, any mix\nfee_to_deduct = max_base + priority_fee(tx, ...)      # refunded unused part later\n```\n\n## 知っておくべきこと\n\n- ステータスは **Draft** で、トランザクションタイプの番号は未定、どのアップグレードにも予定されていません。\n- [EIP-7706](/eip-7706/)（calldata 用の独立した gas タイプ）を土台としており、こちらは Stagnant です。また、calldata を inclusion list（[EIP-7805](/eip-7805/)）でどう扱うかも定義しています。\n- EIP-7623 の calldata フロア価格は、独立した calldata 市場に置き換えられて廃止されます。\n- ウォレットには、複数の base fee を追跡する新しい手数料見積もりが必要になります。変換された blob トランザクションは、リソースごとの個別の上限ではなく、合算の `max_fee` に従います。\n- 仕様では、gas の内省を扱える状態を保ちつつ、EVM gas 自体を複数のリソースに分割する長期的な道筋も示されていますが、この部分は探索的なものです。\n"},"ko":{"lang":"ko","tldr":"리소스(EVM gas, blob gas, calldata)마다 별도의 base fee를 두는 단일 수수료 시장을 제안한다. 각 트랜잭션은 ETH 단위의 max_fee 하나만 설정하며, 비싸지는 어떤 리소스에도 쓸 수 있다.","tags":["gas","fees","multidimensional","calldata","core"],"related":[1559,4844,7706,7918,7805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7999/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움은 이미 두 가지 리소스를 따로 가격 책정합니다. [EIP-1559](/eip-1559/)의 일반 gas와 [EIP-4844](/eip-4844/)의 blob gas이며, 각각 고유한 메커니즘과 고유한 `max_fee_per_*`를 가집니다. 이런 방식으로 차원을 더 늘리면 사용자에게 상황이 더 나빠집니다. 리소스마다 상한이 필요하고, 하나라도 너무 낮게 설정하면 사용자가 총액을 기꺼이 낼 의향이 있어도 트랜잭션이 포함되지 못합니다.\n\nEIP-7999는 사용자가 ETH로 생각하게 해 줍니다. \"이 트랜잭션에 최대 X까지 내겠다\"는 식입니다. 프로토콜은 가격이 변함에 따라 그 예산을 리소스들에 배분합니다. 또한 현재의 두 메커니즘을 EIP-4844 방식의 공통 설계 하나로 대체하고, 첫 번째 새 가격 책정 리소스로 calldata를 추가합니다.\n\n## 어떻게 동작하나요?\n\n- **새 트랜잭션 타입**(타입 번호는 아직 미정). 스칼라 `max_fee`(총 wei)와, 하나의 값 또는 리소스별 값인 `max_priority_fee_per_gas`를 가집니다. `gas_limit`은 EVM gas만 다루며, blob과 calldata gas는 트랜잭션 자체에서 도출됩니다.\n- **세 가지 리소스, 세 개의 base fee:** EVM gas, blob gas, calldata gas. 헤더에서는 `gas_limit`, `gas_used`, `base_fee_per_gas`, `blob_gas_used`, `excess_blob_gas`가 벡터 `gas_limits`, `gas_used`, `excess_gas`로 대체됩니다.\n- **포함 조건 확인:** 리소스별 `base_fee[i] × gas_limit[i]`의 합이 `max_fee` 이하여야 합니다. 실제 사용한 gas에 대한 base fee는 소각되고, 팁은 블록 생성자에게 가며, 나머지는 환불됩니다.\n- **하나의 업데이트 규칙:** 모든 base fee는 현재의 blob 수수료처럼 `fake_exponential(1, excess_gas, BASE_FEE_UPDATE_FRACTION)`입니다. excess gas는 각 리소스의 상한으로 정규화되어 모든 차원이 하나의 업데이트 계수를 공유하며, 상한을 올려도 가격이 급변하지 않습니다.\n- **리저브 가격 책정:** [EIP-7918](/eip-7918/)의 아이디어를 일반화해 blob과 calldata base fee가 EVM base fee보다 훨씬 낮아질 수 없게 합니다.\n- **calldata 한도**는 EVM gas 한도의 4분의 1이고, 목표치는 그 4분의 1입니다. 새 opcode `CALLDATABASEFEE`(`0x4b`, 2 gas)가 그 base fee를 노출합니다.\n- **기존 트랜잭션도 계속 동작합니다:** gas당 상한은 곱해져 동등한 `max_fee`로 변환되며, calldata 몫은 `gas_limit`에서 분리됩니다.\n\n## 샘플 코드\n\n사양의 Python에 있는 핵심 포함 조건 확인:\n\n```python\ndef get_required_max_fee(base_fees, tx_gas_limits):\n    # e.g. base_fees = [evm, blob, calldata], limits likewise\n    return sum(b * g for b, g in zip(base_fees, tx_gas_limits))\n\nbase_fees     = get_block_base_fees(parent)          # one per resource\ntx_gas_limits = [tx.gas_limit, blob_gas, calldata_gas]\nmax_base      = get_required_max_fee(base_fees, tx_gas_limits)\n\nassert max_base \u003c= tx.max_fee                         # one budget, any mix\nfee_to_deduct = max_base + priority_fee(tx, ...)      # refunded unused part later\n```\n\n## 알아둘 점\n\n- 상태는 **Draft**이며, 트랜잭션 타입 번호는 아직 미정이고 어떤 업그레이드에도 예정되어 있지 않습니다.\n- [EIP-7706](/eip-7706/)(calldata용 별도 gas 타입)을 기반으로 하며, 이는 Stagnant 상태입니다. 또한 inclusion list([EIP-7805](/eip-7805/))에서 calldata를 어떻게 다룰지도 정의합니다.\n- EIP-7623의 calldata 최저 가격은 별도의 calldata 시장으로 대체되어 폐기됩니다.\n- 지갑은 여러 base fee를 추적하는 새로운 수수료 추정이 필요합니다. 변환된 blob 트랜잭션은 리소스별 개별 상한이 아니라 합산된 `max_fee`를 따릅니다.\n- 사양은 gas 인트로스펙션을 유지하면서 EVM gas 자체를 여러 리소스로 나누는 장기적인 경로도 제시하지만, 이 부분은 탐색적입니다.\n"},"zh":{"lang":"zh","tldr":"提出一个统一的费用市场，为每种资源（EVM gas、blob gas、calldata）设置独立的 base fee，每笔交易只需设置一个以 ETH 计价的 max_fee，即可覆盖任何变贵的资源。","tags":["gas","fees","multidimensional","calldata","core"],"related":[1559,4844,7706,7918,7805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7999/","markdown":"## 它解决什么问题？\n\n以太坊目前已经对两种资源分别定价：[EIP-1559](/eip-1559/) 下的常规 gas 和 [EIP-4844](/eip-4844/) 下的 blob gas，各有自己的机制和自己的 `max_fee_per_*`。按这种方式继续增加维度，对用户只会更糟：每种资源都需要各自的上限，只要有一个设得太低，交易就无法被打包，即使用户愿意支付总价也一样。\n\nEIP-7999 让用户用 ETH 来思考：\"这笔交易我最多付 X。\"协议会随着价格变化在各资源之间分配这笔预算。它还用一个共享的、EIP-4844 风格的设计取代现有的两套机制，并把 calldata 加为第一个新的定价资源。\n\n## 它如何运作\n\n- **新的交易类型**（类型编号尚未确定），带有一个标量 `max_fee`（总 wei 数）和 `max_priority_fee_per_gas`，后者可以是单个值，也可以每种资源一个值。`gas_limit` 只涵盖 EVM gas；blob 和 calldata 的 gas 由交易本身推导得出。\n- **三种资源，三个 base fee：** EVM gas、blob gas 和 calldata gas。区块头中的 `gas_limit`、`gas_used`、`base_fee_per_gas`、`blob_gas_used` 和 `excess_blob_gas` 被替换为向量 `gas_limits`、`gas_used`、`excess_gas`。\n- **打包检查：** 各资源的 `base_fee[i] × gas_limit[i]` 之和必须 ≤ `max_fee`。实际使用的 gas 对应的 base fee 会被销毁，小费归区块生产者，其余退还。\n- **统一的更新规则：** 每个 base fee 都是 `fake_exponential(1, excess_gas, BASE_FEE_UPDATE_FRACTION)`，与现在的 blob 费用相同。excess gas 按各资源的上限归一化，因此所有维度共用一个更新系数，提高上限也不会造成价格突变。\n- **储备定价：** 推广了 [EIP-7918](/eip-7918/) 的思路，使 blob 和 calldata 的 base fee 不会远低于 EVM base fee。\n- **calldata 上限** 是 EVM gas 上限的四分之一，目标值是该上限的四分之一。新操作码 `CALLDATABASEFEE`（`0x4b`，2 gas）用于读取其 base fee。\n- **旧交易继续可用：** 它们按 gas 计的上限会被相乘折算成等效的 `max_fee`，calldata 部分则从其 `gas_limit` 中划出。\n\n## 示例代码\n\n规范 Python 代码中的核心打包检查：\n\n```python\ndef get_required_max_fee(base_fees, tx_gas_limits):\n    # e.g. base_fees = [evm, blob, calldata], limits likewise\n    return sum(b * g for b, g in zip(base_fees, tx_gas_limits))\n\nbase_fees     = get_block_base_fees(parent)          # one per resource\ntx_gas_limits = [tx.gas_limit, blob_gas, calldata_gas]\nmax_base      = get_required_max_fee(base_fees, tx_gas_limits)\n\nassert max_base \u003c= tx.max_fee                         # one budget, any mix\nfee_to_deduct = max_base + priority_fee(tx, ...)      # refunded unused part later\n```\n\n## 需要注意\n\n- 状态为 **Draft**；交易类型编号尚未确定，也没有排入任何升级。\n- 它建立在 [EIP-7706](/eip-7706/)（为 calldata 设置独立的 gas 类型）之上，后者处于 Stagnant 状态。它还规定了 inclusion list（[EIP-7805](/eip-7805/)）应如何处理 calldata。\n- EIP-7623 的 calldata 底价将被取消，改用独立的 calldata 市场。\n- 钱包需要新的费用估算方式来跟踪多个 base fee。转换后的 blob 交易将遵循总的 `max_fee`，而不是各自独立的单资源上限。\n- 规范还勾勒了将 EVM gas 本身拆分为多种资源、同时保持 gas 自省可用的长期路径；这些部分属于探索性内容。\n"}}}
