{"eip":7788,"title":"Dynamic target blob count","description":"Target blob count changes dynamically to aim for constant blob costs","authors":["Marc Harvey-Hill (@Marchhill)"],"status":"Withdrawn","type":"Standards Track","category":"Core","created":"2024-10-15","requires":[7742],"discussionsTo":"https://ethereum-magicians.org/t/eip-7788-dynamic-target-blob-count/21399","repo":"EIPs","label":"EIP-7788","officialUrl":"https://eips.ethereum.org/EIPS/eip-7788","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7788.md","url":"https://eips.huatuo.xyz/eip-7788/","tldr":{"en":"Proposed letting the blob target adjust itself each epoch, between 1 and 3 blobs, to keep the average blob cost near a fixed ETH price instead of relying on a static 50 % target.","ja":"blob のターゲットをエポックごとに 1〜3 個の範囲で自動調整し、固定の 50 % ターゲットに頼る代わりに、blob の平均コストを一定の ETH 価格付近に保つことを提案した。","ko":"blob 목표치가 에폭마다 1~3개 사이에서 스스로 조정되도록 해, 고정된 50 % 목표에 의존하는 대신 blob 평균 비용을 일정한 ETH 가격 근처로 유지하자는 제안.","zh":"提议让 blob 目标值在每个 epoch 于 1 到 3 个 blob 之间自动调整，使 blob 的平均成本保持在固定的 ETH 价格附近，而不是依赖静态的 50% 目标。"},"tags":["blobs","fees","rollups","core","withdrawn"],"explainers":{"en":{"lang":"en","tldr":"Proposed letting the blob target adjust itself each epoch, between 1 and 3 blobs, to keep the average blob cost near a fixed ETH price instead of relying on a static 50 % target.","tags":["blobs","fees","rollups","core","withdrawn"],"related":[7742,4844,1559,7892,7918],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7788/","markdown":"## What problem does it solve?\n\nBlob fees follow an EIP-1559-style rule: if blocks carry more blobs than the **target**, the blob base fee rises; if fewer, it falls. The target was fixed at half of the maximum.\n\nThe author's concern was that a static target can sit far above real demand. If capacity is raised (for example with data availability sampling) but demand does not follow right away, blobs would cost essentially nothing for a long time. Rollups would pay almost no fees, little ETH would be burned, and core developers would have to keep retuning the target by hand. EIP-7788 proposed making the target itself respond to demand over a longer timescale, aiming at a roughly constant, affordable blob cost.\n\n## How it works\n\nAt the end of every consensus-layer epoch, the target for the next epoch moves up, down or stays put by one blob depending on the mean blob cost during the epoch just finished:\n\n| Parameter | Value |\n| --- | --- |\n| `TARGET_BLOB_COST` | `2^49` wei |\n| `BLOB_COST_CHANGE_MARGIN` | `2^48` wei (a ±50 % dead band) |\n| `TARGET_BLOB_COUNT_CHANGE_RATE` | `1` |\n| `MIN_TARGET_BLOB_COUNT` | `1` |\n| `MAX_TARGET_BLOB_COUNT` | `3` |\n\n- Average cost above target + margin: blobs are scarce, so the target rises (more blobs are \"normal\", fees ease).\n- Average cost below target − margin: blobs are cheap, so the target falls, pushing fees up toward the desired level.\n- The consensus layer requests the epoch's mean blob cost from the execution layer through an Engine API extension, which depends on [EIP-7742](/eip-7742/) (the CL telling the EL the blob target).\n\nThe `MAX_TARGET_BLOB_COUNT` of 3 matched the target at the time; the author expected it to rise later.\n\n## Sample code\n\nThe update rule, from the spec:\n\n```python\nTARGET_BLOB_COST = 2**49\nBLOB_COST_CHANGE_MARGIN = 2**48\nMIN_TARGET_BLOB_COUNT, MAX_TARGET_BLOB_COUNT = 1, 3\n\ndef next_target(previous_target, mean_blob_cost):\n    diff = mean_blob_cost - TARGET_BLOB_COST\n    if diff \u003c -BLOB_COST_CHANGE_MARGIN:\n        direction = -1\n    elif diff \u003e BLOB_COST_CHANGE_MARGIN:\n        direction = 1\n    else:\n        direction = 0\n    return max(min(MAX_TARGET_BLOB_COUNT, previous_target + direction), MIN_TARGET_BLOB_COUNT)\n\nprint(next_target(3, 2**47))  # cheap blobs -\u003e 2\nprint(next_target(2, 2**50))  # expensive blobs -\u003e 3\n```\n\n## Things to know\n\n- **Status: Withdrawn.** This mechanism is not part of Ethereum. Blob targets are instead set explicitly in upgrades, including blob-parameter-only forks ([EIP-7892](/eip-7892/)), and the \"blobs too cheap\" problem was addressed by [EIP-7918](/eip-7918/), which bounds the blob base fee by execution cost.\n- The cost target is denominated in ETH, not dollars: the author rejected fiat targets (would need price oracles) and validator voting (conflicts of interest) as not credibly neutral.\n- The spec's own estimate: at the target cost, blob space for one compressed simple L2 transfer (assumed 23 bytes) would be about 104 gwei, excluding rollup execution costs.\n- Security considerations were never completed in the draft.\n"},"ja":{"lang":"ja","tldr":"blob のターゲットをエポックごとに 1〜3 個の範囲で自動調整し、固定の 50 % ターゲットに頼る代わりに、blob の平均コストを一定の ETH 価格付近に保つことを提案した。","tags":["blobs","fees","rollups","core","withdrawn"],"related":[7742,4844,1559,7892,7918],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7788/","markdown":"## 何を解決するのか\n\nblob の手数料は EIP-1559 方式のルールに従います。ブロックが**ターゲット**より多くの blob を運べば blob ベースフィーは上がり、少なければ下がります。ターゲットは最大値の半分に固定されていました。\n\n著者の懸念は、固定ターゲットが実際の需要を大きく上回ったままになりうることでした。容量が引き上げられても（たとえば data availability sampling によって）需要がすぐには追いつかなければ、blob は長期間ほぼ無料になります。ロールアップはほとんど手数料を払わず、ETH もほとんどバーンされず、コア開発者はターゲットを手作業で調整し続けなければなりません。EIP-7788 は、ターゲット自体がより長い時間スケールで需要に反応し、ほぼ一定で手頃な blob コストを目指すようにすることを提案しました。\n\n## 仕組み\n\nコンセンサスレイヤーのエポックが終わるたびに、直前のエポックにおける blob の平均コストに応じて、次のエポックのターゲットが 1 blob 分だけ上がるか、下がるか、そのままになります。\n\n| パラメーター | 値 |\n| --- | --- |\n| `TARGET_BLOB_COST` | `2^49` wei |\n| `BLOB_COST_CHANGE_MARGIN` | `2^48` wei（±50 % の不感帯） |\n| `TARGET_BLOB_COUNT_CHANGE_RATE` | `1` |\n| `MIN_TARGET_BLOB_COUNT` | `1` |\n| `MAX_TARGET_BLOB_COUNT` | `3` |\n\n- 平均コストが ターゲット + マージン を上回る場合: blob が不足しているので、ターゲットが上がります（より多くの blob が「通常」になり、手数料は緩みます）。\n- 平均コストが ターゲット − マージン を下回る場合: blob が安いので、ターゲットが下がり、手数料を望ましい水準へ押し上げます。\n- コンセンサスレイヤーは、Engine API の拡張を通じて、そのエポックの blob 平均コストを実行レイヤーに要求します。これは [EIP-7742](/eip-7742/)（CL が EL に blob ターゲットを伝える）に依存しています。\n\n`MAX_TARGET_BLOB_COUNT` の 3 は当時のターゲットに合わせたもので、著者は後に引き上げられると想定していました。\n\n## サンプルコード\n\n仕様にある更新ルール:\n\n```python\nTARGET_BLOB_COST = 2**49\nBLOB_COST_CHANGE_MARGIN = 2**48\nMIN_TARGET_BLOB_COUNT, MAX_TARGET_BLOB_COUNT = 1, 3\n\ndef next_target(previous_target, mean_blob_cost):\n    diff = mean_blob_cost - TARGET_BLOB_COST\n    if diff \u003c -BLOB_COST_CHANGE_MARGIN:\n        direction = -1\n    elif diff \u003e BLOB_COST_CHANGE_MARGIN:\n        direction = 1\n    else:\n        direction = 0\n    return max(min(MAX_TARGET_BLOB_COUNT, previous_target + direction), MIN_TARGET_BLOB_COUNT)\n\nprint(next_target(3, 2**47))  # cheap blobs -\u003e 2\nprint(next_target(2, 2**50))  # expensive blobs -\u003e 3\n```\n\n## 知っておくべきこと\n\n- **ステータス: Withdrawn。** この仕組みは Ethereum の一部ではありません。blob のターゲットは代わりに、blob パラメーターのみのフォーク（[EIP-7892](/eip-7892/)）を含むアップグレードで明示的に設定されます。「blob が安すぎる」問題は、blob ベースフィーに実行コストによる下限を設ける [EIP-7918](/eip-7918/) で対処されました。\n- コストのターゲットは、ドルではなく ETH 建てです。著者は、法定通貨建てのターゲット（価格オラクルが必要になる）とバリデーターの投票（利益相反がある）を、信頼できる中立性がないとして退けました。\n- 仕様自身の見積もり: ターゲットコストでは、圧縮された単純な L2 転送 1 件分（23 バイトと仮定）の blob 領域は約 104 gwei で、ロールアップの実行コストは含みません。\n- ドラフトでは、セキュリティに関する考察は完成しませんでした。\n"},"ko":{"lang":"ko","tldr":"blob 목표치가 에폭마다 1~3개 사이에서 스스로 조정되도록 해, 고정된 50 % 목표에 의존하는 대신 blob 평균 비용을 일정한 ETH 가격 근처로 유지하자는 제안.","tags":["blobs","fees","rollups","core","withdrawn"],"related":[7742,4844,1559,7892,7918],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7788/","markdown":"## 어떤 문제를 해결하나요?\n\nblob 수수료는 EIP-1559 방식의 규칙을 따릅니다. 블록이 **목표치**보다 많은 blob을 담으면 blob 기본 수수료가 오르고, 적게 담으면 내립니다. 목표치는 최대치의 절반으로 고정되어 있었습니다.\n\n저자의 우려는 고정된 목표치가 실제 수요보다 한참 높을 수 있다는 점이었습니다. 용량이 늘어나도(예: data availability sampling) 수요가 곧바로 따라오지 않으면 blob은 오랫동안 사실상 공짜가 됩니다. 롤업은 거의 수수료를 내지 않고, 소각되는 ETH도 거의 없으며, 코어 개발자는 목표치를 계속 손으로 다시 조정해야 합니다. EIP-7788은 목표치 자체가 더 긴 시간 척도에서 수요에 반응하게 해, 대략 일정하고 부담스럽지 않은 blob 비용을 목표로 하자고 제안했습니다.\n\n## 어떻게 동작하나요?\n\n컨센서스 레이어의 에폭이 끝날 때마다, 방금 끝난 에폭의 blob 평균 비용에 따라 다음 에폭의 목표치가 blob 1개만큼 오르거나, 내리거나, 그대로 유지됩니다.\n\n| 파라미터 | 값 |\n| --- | --- |\n| `TARGET_BLOB_COST` | `2^49` wei |\n| `BLOB_COST_CHANGE_MARGIN` | `2^48` wei(±50 %의 불감대) |\n| `TARGET_BLOB_COUNT_CHANGE_RATE` | `1` |\n| `MIN_TARGET_BLOB_COUNT` | `1` |\n| `MAX_TARGET_BLOB_COUNT` | `3` |\n\n- 평균 비용이 목표 + 마진보다 높으면: blob이 부족하므로 목표치가 오릅니다(더 많은 blob이 \"정상\"이 되고 수수료가 완화됩니다).\n- 평균 비용이 목표 − 마진보다 낮으면: blob이 싸므로 목표치가 내려가고, 수수료를 원하는 수준으로 끌어올립니다.\n- 컨센서스 레이어는 Engine API 확장을 통해 실행 레이어에 해당 에폭의 blob 평균 비용을 요청합니다. 이는 [EIP-7742](/eip-7742/)(CL이 EL에 blob 목표치를 알려 줌)에 의존합니다.\n\n`MAX_TARGET_BLOB_COUNT`가 3인 것은 당시의 목표치와 맞춘 값이며, 저자는 이후 올라갈 것으로 예상했습니다.\n\n## 샘플 코드\n\n스펙의 업데이트 규칙:\n\n```python\nTARGET_BLOB_COST = 2**49\nBLOB_COST_CHANGE_MARGIN = 2**48\nMIN_TARGET_BLOB_COUNT, MAX_TARGET_BLOB_COUNT = 1, 3\n\ndef next_target(previous_target, mean_blob_cost):\n    diff = mean_blob_cost - TARGET_BLOB_COST\n    if diff \u003c -BLOB_COST_CHANGE_MARGIN:\n        direction = -1\n    elif diff \u003e BLOB_COST_CHANGE_MARGIN:\n        direction = 1\n    else:\n        direction = 0\n    return max(min(MAX_TARGET_BLOB_COUNT, previous_target + direction), MIN_TARGET_BLOB_COUNT)\n\nprint(next_target(3, 2**47))  # cheap blobs -\u003e 2\nprint(next_target(2, 2**50))  # expensive blobs -\u003e 3\n```\n\n## 알아둘 점\n\n- **상태: Withdrawn.** 이 메커니즘은 이더리움의 일부가 아닙니다. blob 목표치는 대신 blob 파라미터만 바꾸는 포크([EIP-7892](/eip-7892/))를 포함한 업그레이드에서 명시적으로 설정되며, \"blob이 너무 싸다\"는 문제는 blob 기본 수수료에 실행 비용 기준의 하한을 두는 [EIP-7918](/eip-7918/)이 해결했습니다.\n- 비용 목표는 달러가 아니라 ETH로 표시됩니다. 저자는 법정화폐 목표(가격 오라클 필요)와 검증자 투표(이해 충돌)는 신뢰할 만한 중립성이 없다고 보아 배제했습니다.\n- 스펙 자체의 추정: 목표 비용에서 압축된 단순 L2 전송 1건(23바이트로 가정)이 차지하는 blob 공간은 약 104 gwei이며, 롤업 실행 비용은 제외한 값입니다.\n- 초안에서는 보안 고려 사항이 끝내 완성되지 않았습니다.\n"},"zh":{"lang":"zh","tldr":"提议让 blob 目标值在每个 epoch 于 1 到 3 个 blob 之间自动调整，使 blob 的平均成本保持在固定的 ETH 价格附近，而不是依赖静态的 50% 目标。","tags":["blobs","fees","rollups","core","withdrawn"],"related":[7742,4844,1559,7892,7918],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7788/","markdown":"## 它解决什么问题？\n\nblob 费用遵循 EIP-1559 风格的规则：如果区块携带的 blob 多于**目标值**，blob 基础费用上涨；少于目标值则下降。目标值被固定为最大值的一半。\n\n作者担心的是，静态目标值可能远高于实际需求。如果容量被提高（例如通过 data availability sampling），而需求没有立即跟上，blob 在很长一段时间里基本不要钱。rollup 几乎不用付费，几乎没有 ETH 被销毁，核心开发者还得不断手动重新调整目标值。EIP-7788 提议让目标值本身在更长的时间尺度上响应需求，以实现大致恒定、可负担的 blob 成本。\n\n## 它如何运作\n\n在每个共识层 epoch 结束时，根据刚结束的 epoch 内 blob 的平均成本，下一个 epoch 的目标值会上调一个 blob、下调一个 blob 或保持不变：\n\n| 参数 | 值 |\n| --- | --- |\n| `TARGET_BLOB_COST` | `2^49` wei |\n| `BLOB_COST_CHANGE_MARGIN` | `2^48` wei（±50% 的死区） |\n| `TARGET_BLOB_COUNT_CHANGE_RATE` | `1` |\n| `MIN_TARGET_BLOB_COUNT` | `1` |\n| `MAX_TARGET_BLOB_COUNT` | `3` |\n\n- 平均成本高于目标值 + 容差：blob 稀缺，因此目标值上调（更多 blob 成为\"常态\"，费用缓和）。\n- 平均成本低于目标值 − 容差：blob 便宜，因此目标值下调，把费用推向期望的水平。\n- 共识层通过 Engine API 扩展向执行层请求该 epoch 的 blob 平均成本，这依赖于 [EIP-7742](/eip-7742/)（CL 告知 EL blob 目标值）。\n\n`MAX_TARGET_BLOB_COUNT` 取 3，与当时的目标值一致；作者预期之后会提高。\n\n## 示例代码\n\n规范中的更新规则：\n\n```python\nTARGET_BLOB_COST = 2**49\nBLOB_COST_CHANGE_MARGIN = 2**48\nMIN_TARGET_BLOB_COUNT, MAX_TARGET_BLOB_COUNT = 1, 3\n\ndef next_target(previous_target, mean_blob_cost):\n    diff = mean_blob_cost - TARGET_BLOB_COST\n    if diff \u003c -BLOB_COST_CHANGE_MARGIN:\n        direction = -1\n    elif diff \u003e BLOB_COST_CHANGE_MARGIN:\n        direction = 1\n    else:\n        direction = 0\n    return max(min(MAX_TARGET_BLOB_COUNT, previous_target + direction), MIN_TARGET_BLOB_COUNT)\n\nprint(next_target(3, 2**47))  # cheap blobs -\u003e 2\nprint(next_target(2, 2**50))  # expensive blobs -\u003e 3\n```\n\n## 需要注意\n\n- **状态：Withdrawn。** 这一机制不是以太坊的一部分。blob 目标值改为在升级中显式设定，包括只调整 blob 参数的分叉（[EIP-7892](/eip-7892/)），而\"blob 太便宜\"的问题由 [EIP-7918](/eip-7918/) 解决，它用执行成本为 blob 基础费用设定下限。\n- 成本目标以 ETH 而非美元计价：作者拒绝了法币目标（需要价格预言机）和验证者投票（存在利益冲突），认为它们缺乏可信的中立性。\n- 规范自己的估算：在目标成本下，容纳一笔压缩后的简单 L2 转账（假设 23 字节）所需的 blob 空间约为 104 gwei，不含 rollup 的执行成本。\n- 草案中的安全性考量始终没有完成。\n"}}}
