{"eip":7918,"title":"Blob base fee bounded by execution cost","description":"Imposes that the price of GAS_PER_BLOB blob gas is greater than the price of BLOB_BASE_COST execution gas.","authors":["Anders Elowsson (@anderselowsson)","Ben Adams (@benaadams)","Francesco D'Amato (@fradamt)"],"status":"Final","type":"Standards Track","category":"Core","created":"2025-03-25","requires":[4844,7840],"discussionsTo":"https://ethereum-magicians.org/t/eip-blob-base-fee-bounded-by-price-of-blob-carrying-transaction/23271","repo":"EIPs","label":"EIP-7918","officialUrl":"https://eips.ethereum.org/EIPS/eip-7918","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7918.md","url":"https://eips.huatuo.xyz/eip-7918/","tldr":{"en":"Sets a floor on the blob base fee tied to the execution base fee, so the blob fee market keeps working instead of collapsing to 1 wei when execution costs dominate.","ja":"blob ベース手数料に、実行ベース手数料に連動した下限を設ける。実行コストが支配的なときに blob 手数料が 1 wei まで崩れず、blob の手数料市場が機能し続けるようにする。","ko":"blob 기본 수수료에 실행 기본 수수료와 연동된 하한을 둔다. 실행 비용이 지배적일 때 blob 수수료가 1 wei로 무너지지 않고 blob 수수료 시장이 계속 작동하게 한다.","zh":"为 blob 基础费用设置与执行层基础费用挂钩的下限，使 blob 费用市场继续运转，而不会在执行成本占主导时坍缩到 1 wei。"},"tags":["blobs","fees","rollups","core","fusaka"],"explainers":{"en":{"lang":"en","tldr":"Sets a floor on the blob base fee tied to the execution base fee, so the blob fee market keeps working instead of collapsing to 1 wei when execution costs dominate.","tags":["blobs","fees","rollups","core","fusaka"],"related":[4844,7840,7594,7607,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7918/","markdown":"## What problem does it solve?\n\n[EIP-4844](/eip-4844/) gave blobs their own fee market: if blocks use more blob gas than the target, the blob base fee rises; if less, it falls. That only works if the blob fee is a meaningful part of what rollups actually pay.\n\nIn practice a rollup's cost of posting blobs is dominated by the execution gas of the blob-carrying transaction (plus proof verification and tips). When blob demand was below target, the blob base fee kept dropping until it sat at 1 wei, where a 10 % change in the fee changes the rollup's total cost by almost nothing. When demand returned, it took a long run of near-full blocks to climb back to a market-clearing price, and in the meantime users fell back to bidding via tips, a worse experience.\n\nThere is also a cost argument: nodes must verify KZG proofs for every blob, which is real compute. A blob costing effectively zero underpays for that work.\n\n## How it works\n\nEIP-7918 adds one `if` clause to `calc_excess_blob_gas()` and one constant, `BLOB_BASE_COST = 2**13` (8192).\n\n- If one blob's price (`GAS_PER_BLOB * blob_base_fee`) is **below** the price of `BLOB_BASE_COST` units of execution gas, the protocol stops subtracting the target when updating `excess_blob_gas`. The blob base fee can then only rise, at the same maximum rate as before.\n- Otherwise the normal EIP-4844 update applies.\n\nThe effect is a reserve price: the blob base fee will not settle below `BLOB_BASE_COST * base_fee_per_gas / GAS_PER_BLOB`, which is 1/16 of the execution base fee per unit of blob gas. Because the floor tracks the execution base fee, it falls automatically when execution gets cheaper, rather than being a fixed number that would need retuning as Ethereum scales.\n\nIt uses the per-fork `blobSchedule` (target, max, update fraction) introduced by [EIP-7840](/eip-7840/).\n\n## Sample code\n\nThe modified function from the spec:\n\n```python\nBLOB_BASE_COST = 2**13\n\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = GAS_PER_BLOB * blobSchedule.target\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n\n    if BLOB_BASE_COST * parent.base_fee_per_gas \u003e GAS_PER_BLOB * get_base_fee_per_blob_gas(parent):\n        # execution-fee-led regime: only allow the blob fee to rise\n        return parent.excess_blob_gas + parent.blob_gas_used * (blobSchedule.max - blobSchedule.target) // blobSchedule.max\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\nChecking whether the floor is binding, with ethers v6:\n\n```ts\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\nconst blobBaseFee = BigInt(await provider.send(\"eth_blobBaseFee\", []));\nconst reserve = (8192n * BigInt(block.baseFeePerGas)) / 131072n; // GAS_PER_BLOB = 2**17\nconsole.log(blobBaseFee \u003c= reserve ? \"at/below reserve\" : \"market-led\");\n```\n\n## Things to know\n\n- **Status: Final.** It is listed in the Fusaka upgrade ([EIP-7607](/eip-7607/)), alongside PeerDAS ([EIP-7594](/eip-7594/)).\n- Rollups pay a little more in quiet periods, but blob fees become far less spiky when demand returns.\n- When execution fees jump quickly, the blob fee catches up over a few blocks rather than instantly; the authors consider this smoothing acceptable.\n- Wallet and rollup fee estimators that assumed a near-zero blob fee should read the actual `blobBaseFee` rather than hard-coding 1 wei.\n"},"ja":{"lang":"ja","tldr":"blob ベース手数料に、実行ベース手数料に連動した下限を設ける。実行コストが支配的なときに blob 手数料が 1 wei まで崩れず、blob の手数料市場が機能し続けるようにする。","tags":["blobs","fees","rollups","core","fusaka"],"related":[4844,7840,7594,7607,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7918/","markdown":"## 何を解決するのか\n\n[EIP-4844](/eip-4844/) は blob に独自の手数料市場を与えました。ブロックが目標より多くの blob gas を使うと blob ベース手数料は上がり、少なければ下がります。これが機能するのは、blob 手数料が rollup が実際に支払う額の意味のある部分を占めている場合だけです。\n\n実際には、rollup が blob を投稿するコストは、blob を運ぶトランザクションの実行 gas（に加えて、証明の検証とチップ）が支配的です。blob の需要が目標を下回っていたとき、blob ベース手数料は下がり続けて 1 wei に張り付きました。そこでは手数料が 10 % 変わっても rollup の総コストはほとんど変わりません。需要が戻ると、市場で成立する価格に戻るまでに、ほぼ満杯のブロックが長く続く必要があり、その間ユーザーはチップによる入札に戻ってしまいました。これは体験としてより悪いものです。\n\nコストの観点もあります。ノードはすべての blob について KZG 証明を検証しなければならず、これは実際の計算です。実質ゼロの blob は、その作業に対して支払いが不足しています。\n\n## 仕組み\n\nEIP-7918 は、`calc_excess_blob_gas()` に `if` 節を 1 つ、定数 `BLOB_BASE_COST = 2**13`（8192）を 1 つ追加します。\n\n- blob 1 つの価格（`GAS_PER_BLOB * blob_base_fee`）が、実行 gas の `BLOB_BASE_COST` 単位分の価格を**下回る**場合、プロトコルは `excess_blob_gas` を更新するときに target の減算をやめます。そうすると blob ベース手数料は、従来と同じ最大の速度でしか上がらなくなります。\n- そうでなければ、通常の EIP-4844 の更新が適用されます。\n\nその効果は留保価格（reserve price）です。blob ベース手数料は `BLOB_BASE_COST * base_fee_per_gas / GAS_PER_BLOB`、つまり blob gas 1 単位あたり実行ベース手数料の 1/16 を下回って落ち着くことがなくなります。下限は実行ベース手数料に連動するため、Ethereum のスケールに合わせて調整し直す必要がある固定値とは異なり、実行が安くなれば自動的に下がります。\n\n[EIP-7840](/eip-7840/) で導入された、フォークごとの `blobSchedule`（target、max、update fraction）を使います。\n\n## サンプルコード\n\n仕様に記載された、変更後の関数：\n\n```python\nBLOB_BASE_COST = 2**13\n\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = GAS_PER_BLOB * blobSchedule.target\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n\n    if BLOB_BASE_COST * parent.base_fee_per_gas \u003e GAS_PER_BLOB * get_base_fee_per_blob_gas(parent):\n        # execution-fee-led regime: only allow the blob fee to rise\n        return parent.excess_blob_gas + parent.blob_gas_used * (blobSchedule.max - blobSchedule.target) // blobSchedule.max\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\nethers v6 で、下限が効いているかどうかを確認する例：\n\n```ts\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\nconst blobBaseFee = BigInt(await provider.send(\"eth_blobBaseFee\", []));\nconst reserve = (8192n * BigInt(block.baseFeePerGas)) / 131072n; // GAS_PER_BLOB = 2**17\nconsole.log(blobBaseFee \u003c= reserve ? \"at/below reserve\" : \"market-led\");\n```\n\n## 知っておくべきこと\n\n- **ステータス：Final。** PeerDAS（[EIP-7594](/eip-7594/)）とともに、Fusaka アップグレード（[EIP-7607](/eip-7607/)）に含まれています。\n- rollup は閑散期に少し多く支払いますが、需要が戻ったときの blob 手数料のスパイクははるかに小さくなります。\n- 実行手数料が急に跳ね上がっても、blob 手数料は即座にではなく数ブロックかけて追いつきます。著者はこの平滑化を許容できるとしています。\n- blob 手数料がほぼゼロであると想定していたウォレットや rollup の手数料見積もりは、1 wei をハードコードせず、実際の `blobBaseFee` を読むべきです。\n"},"ko":{"lang":"ko","tldr":"blob 기본 수수료에 실행 기본 수수료와 연동된 하한을 둔다. 실행 비용이 지배적일 때 blob 수수료가 1 wei로 무너지지 않고 blob 수수료 시장이 계속 작동하게 한다.","tags":["blobs","fees","rollups","core","fusaka"],"related":[4844,7840,7594,7607,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7918/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-4844](/eip-4844/)는 blob에 독자적인 수수료 시장을 주었습니다. 블록이 목표보다 많은 blob gas를 쓰면 blob 기본 수수료가 오르고, 적게 쓰면 내립니다. 이것이 동작하려면 blob 수수료가 rollup이 실제로 내는 비용에서 의미 있는 부분이어야 합니다.\n\n실제로 rollup이 blob을 게시하는 비용은 blob을 실은 트랜잭션의 실행 gas(그리고 증명 검증과 팁)가 지배합니다. blob 수요가 목표 아래였을 때 blob 기본 수수료는 계속 떨어져 1 wei에 머물렀고, 이 수준에서는 수수료가 10 % 변해도 rollup의 총비용은 거의 달라지지 않습니다. 수요가 돌아오자 시장 청산 가격으로 올라오기까지 거의 가득 찬 블록이 오래 이어져야 했고, 그동안 사용자는 팁으로 입찰하는 방식으로 되돌아갔는데 이는 더 나쁜 경험입니다.\n\n비용 측면의 논거도 있습니다. 노드는 모든 blob에 대해 KZG 증명을 검증해야 하고, 이는 실제 연산입니다. 사실상 공짜인 blob은 그 작업에 대한 대가가 부족합니다.\n\n## 어떻게 동작하나요?\n\nEIP-7918은 `calc_excess_blob_gas()`에 `if` 절 하나와 상수 `BLOB_BASE_COST = 2**13`(8192) 하나를 추가합니다.\n\n- blob 하나의 가격(`GAS_PER_BLOB * blob_base_fee`)이 실행 gas `BLOB_BASE_COST` 단위의 가격보다 **낮으면**, 프로토콜은 `excess_blob_gas`를 갱신할 때 target 차감을 멈춥니다. 그러면 blob 기본 수수료는 이전과 같은 최대 속도로 오르기만 할 수 있습니다.\n- 그렇지 않으면 일반적인 EIP-4844 갱신이 적용됩니다.\n\n그 효과는 유보 가격(reserve price)입니다. blob 기본 수수료는 `BLOB_BASE_COST * base_fee_per_gas / GAS_PER_BLOB`, 즉 blob gas 단위당 실행 기본 수수료의 1/16 아래로 안정되지 않습니다. 하한이 실행 기본 수수료를 따라가므로, 이더리움이 확장될 때마다 다시 조정해야 하는 고정값과 달리 실행이 저렴해지면 자동으로 내려갑니다.\n\n[EIP-7840](/eip-7840/)에서 도입된 포크별 `blobSchedule`(target, max, update fraction)을 사용합니다.\n\n## 샘플 코드\n\n스펙의 수정된 함수:\n\n```python\nBLOB_BASE_COST = 2**13\n\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = GAS_PER_BLOB * blobSchedule.target\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n\n    if BLOB_BASE_COST * parent.base_fee_per_gas \u003e GAS_PER_BLOB * get_base_fee_per_blob_gas(parent):\n        # execution-fee-led regime: only allow the blob fee to rise\n        return parent.excess_blob_gas + parent.blob_gas_used * (blobSchedule.max - blobSchedule.target) // blobSchedule.max\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\nethers v6로 하한이 적용되고 있는지 확인하기:\n\n```ts\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\nconst blobBaseFee = BigInt(await provider.send(\"eth_blobBaseFee\", []));\nconst reserve = (8192n * BigInt(block.baseFeePerGas)) / 131072n; // GAS_PER_BLOB = 2**17\nconsole.log(blobBaseFee \u003c= reserve ? \"at/below reserve\" : \"market-led\");\n```\n\n## 알아둘 점\n\n- **상태: Final.** PeerDAS([EIP-7594](/eip-7594/))와 함께 Fusaka 업그레이드([EIP-7607](/eip-7607/))에 포함되어 있습니다.\n- rollup은 한산한 시기에 조금 더 내지만, 수요가 돌아올 때 blob 수수료의 급등락이 훨씬 줄어듭니다.\n- 실행 수수료가 빠르게 뛰면 blob 수수료는 즉시가 아니라 몇 블록에 걸쳐 따라잡습니다. 저자들은 이런 완만화를 받아들일 만하다고 봅니다.\n- blob 수수료가 거의 0이라고 가정한 지갑과 rollup 수수료 추정기는 1 wei를 하드코딩하지 말고 실제 `blobBaseFee`를 읽어야 합니다.\n"},"zh":{"lang":"zh","tldr":"为 blob 基础费用设置与执行层基础费用挂钩的下限，使 blob 费用市场继续运转，而不会在执行成本占主导时坍缩到 1 wei。","tags":["blobs","fees","rollups","core","fusaka"],"related":[4844,7840,7594,7607,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7918/","markdown":"## 它解决什么问题？\n\n[EIP-4844](/eip-4844/) 为 blob 设立了独立的费用市场：如果区块使用的 blob gas 超过目标，blob 基础费用上升；低于目标则下降。这只有在 blob 费用是 rollup 实际支付成本中有意义的一部分时才有效。\n\n实际上，rollup 发布 blob 的成本主要由携带 blob 的交易的执行 gas（加上证明验证和小费）决定。当 blob 需求低于目标时，blob 基础费用不断下降，直到停在 1 wei，此时费用变化 10 % 对 rollup 总成本几乎没有影响。需求回升时，需要连续很多个几乎满载的区块才能爬回市场出清价格，其间用户退回到通过小费竞价，体验更差。\n\n还有成本方面的理由：节点必须为每个 blob 验证 KZG 证明，这是实实在在的计算。实际上近乎免费的 blob，对这项工作的补偿不足。\n\n## 它如何运作\n\nEIP-7918 在 `calc_excess_blob_gas()` 中增加一个 `if` 分支和一个常量 `BLOB_BASE_COST = 2**13`（8192）。\n\n- 如果一个 blob 的价格（`GAS_PER_BLOB * blob_base_fee`）**低于** `BLOB_BASE_COST` 单位执行 gas 的价格，协议在更新 `excess_blob_gas` 时不再减去 target。此时 blob 基础费用只能上升，上升速度的上限与之前相同。\n- 否则，适用正常的 EIP-4844 更新。\n\n其效果是一个保留价格：blob 基础费用不会稳定在 `BLOB_BASE_COST * base_fee_per_gas / GAS_PER_BLOB` 以下，即每单位 blob gas 为执行层基础费用的 1/16。由于下限跟随执行层基础费用，当执行变便宜时它会自动下降，而不是一个随着以太坊扩容需要重新调整的固定数值。\n\n它使用 [EIP-7840](/eip-7840/) 引入的按分叉划分的 `blobSchedule`（target、max、update fraction）。\n\n## 示例代码\n\n规范中修改后的函数：\n\n```python\nBLOB_BASE_COST = 2**13\n\ndef calc_excess_blob_gas(parent: Header) -\u003e int:\n    target_blob_gas = GAS_PER_BLOB * blobSchedule.target\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c target_blob_gas:\n        return 0\n\n    if BLOB_BASE_COST * parent.base_fee_per_gas \u003e GAS_PER_BLOB * get_base_fee_per_blob_gas(parent):\n        # execution-fee-led regime: only allow the blob fee to rise\n        return parent.excess_blob_gas + parent.blob_gas_used * (blobSchedule.max - blobSchedule.target) // blobSchedule.max\n    else:\n        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas\n```\n\n使用 ethers v6 检查下限是否生效：\n\n```ts\nconst block = await provider.send(\"eth_getBlockByNumber\", [\"latest\", false]);\nconst blobBaseFee = BigInt(await provider.send(\"eth_blobBaseFee\", []));\nconst reserve = (8192n * BigInt(block.baseFeePerGas)) / 131072n; // GAS_PER_BLOB = 2**17\nconsole.log(blobBaseFee \u003c= reserve ? \"at/below reserve\" : \"market-led\");\n```\n\n## 需要注意\n\n- **状态：Final。** 它被列入 Fusaka 升级（[EIP-7607](/eip-7607/)），与 PeerDAS（[EIP-7594](/eip-7594/)）一同上线。\n- rollup 在平静时期会多付一点，但需求回升时 blob 费用的剧烈波动会小得多。\n- 当执行层费用快速上涨时，blob 费用会在几个区块内追上，而不是立刻追上；作者认为这种平滑是可以接受的。\n- 假定 blob 费用接近零的钱包和 rollup 费用估算器，应读取实际的 `blobBaseFee`，而不是硬编码 1 wei。\n"}},"requiredBy":[7607,7999,8256]}
