{"eip":7915,"title":"Adaptive mean reversion blob pricing","description":"Fee schedule accounting for the long-run average to quickly restore equilibrium under inelastic demand","authors":["Anders Elowsson (@anderselowsson)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2025-03-23","requires":[4844],"discussionsTo":"https://ethereum-magicians.org/t/adaptive-mean-reversion-blob-pricing/23243","repo":"EIPs","label":"EIP-7915","officialUrl":"https://eips.ethereum.org/EIPS/eip-7915","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7915.md","url":"https://eips.huatuo.xyz/eip-7915/","tldr":{"en":"A stagnant proposal to make the blob base fee rise faster than it falls whenever it sits below its long-run average, so blob pricing snaps back to equilibrium instead of lingering at 1 wei.","ja":"blob のベース手数料が長期平均を下回っているときは、下がるよりも速く上がるようにする、停滞中（Stagnant）の提案。blob の価格が 1 wei に居座らず、均衡へすばやく戻るようにする。","ko":"blob 기본 수수료가 장기 평균보다 낮을 때는 내려가는 것보다 더 빨리 오르도록 하는, 정체된(Stagnant) 제안. blob 가격이 1 wei에 머물지 않고 균형으로 빠르게 돌아오게 한다.","zh":"一项已停滞（Stagnant）的提案：每当 blob 基础费用低于其长期平均值时，让它上涨得比下跌更快，使 blob 定价迅速回到均衡，而不是长期停留在 1 wei。"},"tags":["blobs","fees","core","4844","economics"],"explainers":{"en":{"lang":"en","tldr":"A stagnant proposal to make the blob base fee rise faster than it falls whenever it sits below its long-run average, so blob pricing snaps back to equilibrium instead of lingering at 1 wei.","tags":["blobs","fees","core","4844","economics"],"related":[4844,7918,7762,7691,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7915/","markdown":"## What problem does it solve?\n\n[EIP-4844](/eip-4844/) prices blobs with an [EIP-1559](/eip-1559/)-style base fee: above-target blob use pushes the fee up, below-target use pushes it down, with a floor of 1 wei. Demand for blobs turned out to be very fee-inelastic. After a quiet stretch the fee can collapse to the economically meaningless 1 wei, and when demand returns the protocol needs a long run of near-full blocks to climb back. Meanwhile users fall back to bidding priority fees, a first-price auction with worse UX, and resource usage becomes spiky.\n\nA fixed minimum fee (as in [EIP-7762](/eip-7762/)) would help, but any hard-coded number goes stale as the ETH price and throughput change. EIP-7915 instead anchors the behaviour to the **long-run average** blob fee, so the mechanism stays neutral over time.\n\n## How it works\n\n1. **Track an average.** A new header field `base_fee_per_blob_gas_ema` stores an exponential moving average of the blob base fee. Each block it moves `1 / EMA_DECAY` (with `EMA_DECAY = 2**18`, a half-life of roughly a month) toward the current fee. For the first post-fork block it starts at 4 gwei.\n2. **Compute a mean-reversion weight `w`.** If the current fee is at or above the average, `w = 1` and the normal EIP-4844 update applies. If it is below, `w` grows smoothly with the ratio average / current fee, using an eighth root (three integer square roots) and a deadband constant of 64. The ratio is capped at `10**6` to avoid extreme responses and overflow.\n3. **Bend the excess-gas update.** Instead of `excess += used - target`, the update becomes `excess += used·w − target/w`. Blob usage counts for more and the target for less, so the fee rises quickly and falls slowly while it is cheap relative to history.\n\nThe schedule stays smooth at every ratio, so there is no particular blob count that block producers would want to game.\n\n## Sample code\n\nThe modified update, adapted from the spec's Python:\n\n```python\nEMA_DECAY = 2**18\nMEAN_REVERSION_DEADBAND = 64\nMEAN_REVERSION_FULLBAND = 10**6\n\ndef calc_excess_blob_gas(parent) -\u003e int:\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c TARGET_BLOB_GAS_PER_BLOCK:\n        return 0\n    Up = 2**16\n    fee, ema = get_base_fee_per_blob_gas(parent), parent.base_fee_per_blob_gas_ema\n    if fee \u003e ema:\n        w = Up\n    else:\n        if ema // fee \u003e MEAN_REVERSION_FULLBAND:\n            ratio = Up * MEAN_REVERSION_FULLBAND      # cap extreme ratios\n        else:\n            ratio = Up * ema // fee\n        w = (ratio + Up * MEAN_REVERSION_DEADBAND) // (MEAN_REVERSION_DEADBAND + 1)\n        for _ in range(3):\n            w = integer_squareroot(w * Up)      # eighth root, upsampled\n    return parent.excess_blob_gas + parent.blob_gas_used * w // Up \\\n           - TARGET_BLOB_GAS_PER_BLOCK * Up // w\n\ndef calc_base_fee_per_blob_gas_ema(parent) -\u003e int:\n    return (parent.base_fee_per_blob_gas_ema\n            + get_base_fee_per_blob_gas(parent) // EMA_DECAY\n            - parent.base_fee_per_blob_gas_ema // EMA_DECAY)\n```\n\n## Things to know\n\n- Status is **Stagnant**: it has not been scheduled for any upgrade.\n- The problem it targets was addressed differently by [EIP-7918](/eip-7918/), which bounds the blob base fee by the execution-layer cost of a blob.\n- It would add a new header field and require `integer_squareroot()` on the execution layer.\n- Security note from the spec: when the fee is far below average, full blocks can double the blob fee each block, so a one-block delay can cost twice as much.\n"},"ja":{"lang":"ja","tldr":"blob のベース手数料が長期平均を下回っているときは、下がるよりも速く上がるようにする、停滞中（Stagnant）の提案。blob の価格が 1 wei に居座らず、均衡へすばやく戻るようにする。","tags":["blobs","fees","core","4844","economics"],"related":[4844,7918,7762,7691,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7915/","markdown":"## 何を解決するのか\n\n[EIP-4844](/eip-4844/) は、[EIP-1559](/eip-1559/) 方式のベース手数料で blob の価格を決めます。blob の使用量がターゲットを上回れば手数料が上がり、下回れば下がり、下限は 1 wei です。blob の需要は手数料に対して非常に非弾力的であることが分かりました。閑散期を経ると手数料は経済的に意味のない 1 wei まで崩れることがあり、需要が戻ってきても、プロトコルが元の水準に戻るにはほぼ満杯のブロックが長く続く必要があります。その間、ユーザーはプライオリティ手数料での入札、つまりファーストプライスオークションに頼らざるをえず、UX は悪化し、リソース使用量も波打つようになります。\n\n固定の最低手数料（[EIP-7762](/eip-7762/) のようなもの）は助けになりますが、ハードコードされた数値は ETH 価格やスループットの変化とともに古くなります。EIP-7915 は代わりに、動作を**長期平均**の blob 手数料に結び付けるため、この仕組みは時間が経っても中立のままです。\n\n## 仕組み\n\n1. **平均を追跡する。** 新しいヘッダーフィールド `base_fee_per_blob_gas_ema` に、blob ベース手数料の指数移動平均を保存します。ブロックごとに、現在の手数料へ向けて `1 / EMA_DECAY` だけ動きます（`EMA_DECAY = 2**18`、半減期はおよそ 1 か月）。フォーク後の最初のブロックでは 4 gwei から始まります。\n2. **平均回帰の重み `w` を計算する。** 現在の手数料が平均以上なら `w = 1` で、通常の EIP-4844 の更新が適用されます。平均を下回る場合、`w` は平均 / 現在の手数料の比に応じて滑らかに増加します。8 乗根（整数の平方根 3 回）と、デッドバンド定数 64 を使います。極端な反応やオーバーフローを避けるため、比は `10**6` で上限が設けられます。\n3. **excess gas の更新を曲げる。** `excess += used - target` の代わりに、更新は `excess += used·w − target/w` になります。blob の使用量はより重く、ターゲットはより軽く数えられるため、履歴に比べて手数料が安いうちは、手数料が速く上がり、ゆっくり下がります。\n\nどの比でもスケジュールは滑らかなので、ブロックプロデューサーが狙って操作したくなるような特定の blob 数はありません。\n\n## サンプルコード\n\n仕様の Python を元にした、変更後の更新処理:\n\n```python\nEMA_DECAY = 2**18\nMEAN_REVERSION_DEADBAND = 64\nMEAN_REVERSION_FULLBAND = 10**6\n\ndef calc_excess_blob_gas(parent) -\u003e int:\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c TARGET_BLOB_GAS_PER_BLOCK:\n        return 0\n    Up = 2**16\n    fee, ema = get_base_fee_per_blob_gas(parent), parent.base_fee_per_blob_gas_ema\n    if fee \u003e ema:\n        w = Up\n    else:\n        if ema // fee \u003e MEAN_REVERSION_FULLBAND:\n            ratio = Up * MEAN_REVERSION_FULLBAND      # cap extreme ratios\n        else:\n            ratio = Up * ema // fee\n        w = (ratio + Up * MEAN_REVERSION_DEADBAND) // (MEAN_REVERSION_DEADBAND + 1)\n        for _ in range(3):\n            w = integer_squareroot(w * Up)      # eighth root, upsampled\n    return parent.excess_blob_gas + parent.blob_gas_used * w // Up \\\n           - TARGET_BLOB_GAS_PER_BLOCK * Up // w\n\ndef calc_base_fee_per_blob_gas_ema(parent) -\u003e int:\n    return (parent.base_fee_per_blob_gas_ema\n            + get_base_fee_per_blob_gas(parent) // EMA_DECAY\n            - parent.base_fee_per_blob_gas_ema // EMA_DECAY)\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。どのアップグレードにも予定されていません。\n- 対象としている問題には、[EIP-7918](/eip-7918/) が別の方法で対処しました。こちらは、blob のベース手数料に、blob の実行レイヤーコストで下限を設けるものです。\n- 新しいヘッダーフィールドが追加され、実行レイヤーで `integer_squareroot()` が必要になります。\n- 仕様のセキュリティに関する注意: 手数料が平均を大きく下回っているときは、満杯のブロックによって blob 手数料がブロックごとに倍になることがあるため、1 ブロック遅れるとコストが 2 倍になりうる。\n"},"ko":{"lang":"ko","tldr":"blob 기본 수수료가 장기 평균보다 낮을 때는 내려가는 것보다 더 빨리 오르도록 하는, 정체된(Stagnant) 제안. blob 가격이 1 wei에 머물지 않고 균형으로 빠르게 돌아오게 한다.","tags":["blobs","fees","core","4844","economics"],"related":[4844,7918,7762,7691,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7915/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-4844](/eip-4844/)는 [EIP-1559](/eip-1559/) 방식의 기본 수수료로 blob 가격을 정합니다. blob 사용량이 목표를 넘으면 수수료가 오르고, 밑돌면 내려가며, 하한은 1 wei입니다. blob 수요는 수수료에 매우 비탄력적인 것으로 드러났습니다. 한산한 기간이 지나면 수수료가 경제적으로 무의미한 1 wei까지 붕괴할 수 있고, 수요가 돌아와도 프로토콜은 다시 올라가기 위해 거의 가득 찬 블록이 오래 이어져야 합니다. 그동안 사용자는 우선 수수료 입찰, 즉 UX가 더 나쁜 최초 가격 경매로 되돌아가며, 리소스 사용량도 들쭉날쭉해집니다.\n\n고정된 최소 수수료([EIP-7762](/eip-7762/) 같은 것)는 도움이 되겠지만, 하드코딩된 숫자는 ETH 가격과 처리량이 변하면 낡게 됩니다. EIP-7915는 대신 동작을 **장기 평균** blob 수수료에 고정하므로, 이 메커니즘은 시간이 지나도 중립을 유지합니다.\n\n## 어떻게 동작하나요?\n\n1. **평균 추적.** 새 헤더 필드 `base_fee_per_blob_gas_ema`가 blob 기본 수수료의 지수 이동 평균을 저장합니다. 블록마다 현재 수수료를 향해 `1 / EMA_DECAY`만큼 움직입니다(`EMA_DECAY = 2**18`, 반감기는 대략 한 달). 포크 이후 첫 블록은 4 gwei에서 시작합니다.\n2. **평균 회귀 가중치 `w` 계산.** 현재 수수료가 평균 이상이면 `w = 1`이며 일반적인 EIP-4844 갱신이 적용됩니다. 평균보다 낮으면 `w`는 평균 / 현재 수수료 비율에 따라 부드럽게 커집니다. 8제곱근(정수 제곱근 세 번)과 값이 64인 데드밴드 상수를 사용합니다. 극단적인 반응과 오버플로를 피하기 위해 비율은 `10**6`으로 상한이 정해집니다.\n3. **excess gas 갱신 비틀기.** `excess += used - target` 대신 갱신은 `excess += used·w − target/w`가 됩니다. blob 사용량은 더 크게, 목표는 더 작게 계산되므로 수수료가 과거에 비해 쌀 때는 빨리 오르고 천천히 내려갑니다.\n\n곡선은 모든 비율에서 매끄러우므로, 블록 생성자가 조작하고 싶어 할 만한 특정 blob 수는 없습니다.\n\n## 샘플 코드\n\n스펙의 Python을 바탕으로 수정된 갱신 로직:\n\n```python\nEMA_DECAY = 2**18\nMEAN_REVERSION_DEADBAND = 64\nMEAN_REVERSION_FULLBAND = 10**6\n\ndef calc_excess_blob_gas(parent) -\u003e int:\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c TARGET_BLOB_GAS_PER_BLOCK:\n        return 0\n    Up = 2**16\n    fee, ema = get_base_fee_per_blob_gas(parent), parent.base_fee_per_blob_gas_ema\n    if fee \u003e ema:\n        w = Up\n    else:\n        if ema // fee \u003e MEAN_REVERSION_FULLBAND:\n            ratio = Up * MEAN_REVERSION_FULLBAND      # cap extreme ratios\n        else:\n            ratio = Up * ema // fee\n        w = (ratio + Up * MEAN_REVERSION_DEADBAND) // (MEAN_REVERSION_DEADBAND + 1)\n        for _ in range(3):\n            w = integer_squareroot(w * Up)      # eighth root, upsampled\n    return parent.excess_blob_gas + parent.blob_gas_used * w // Up \\\n           - TARGET_BLOB_GAS_PER_BLOCK * Up // w\n\ndef calc_base_fee_per_blob_gas_ema(parent) -\u003e int:\n    return (parent.base_fee_per_blob_gas_ema\n            + get_base_fee_per_blob_gas(parent) // EMA_DECAY\n            - parent.base_fee_per_blob_gas_ema // EMA_DECAY)\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 어떤 업그레이드에도 예정되어 있지 않습니다.\n- 이 제안이 겨냥한 문제는 [EIP-7918](/eip-7918/)이 다른 방식으로 해결했습니다. 이는 blob 기본 수수료에 blob의 실행 계층 비용으로 하한을 두는 방식입니다.\n- 새 헤더 필드가 추가되고 실행 계층에 `integer_squareroot()`가 필요합니다.\n- 스펙의 보안 참고: 수수료가 평균보다 훨씬 낮을 때는 가득 찬 블록이 blob 수수료를 블록마다 두 배로 만들 수 있으므로, 한 블록 늦어지면 두 배의 비용이 들 수 있다.\n"},"zh":{"lang":"zh","tldr":"一项已停滞（Stagnant）的提案：每当 blob 基础费用低于其长期平均值时，让它上涨得比下跌更快，使 blob 定价迅速回到均衡，而不是长期停留在 1 wei。","tags":["blobs","fees","core","4844","economics"],"related":[4844,7918,7762,7691,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7915/","markdown":"## 它解决什么问题？\n\n[EIP-4844](/eip-4844/) 用 [EIP-1559](/eip-1559/) 风格的基础费用为 blob 定价：blob 使用量高于目标时费用上升，低于目标时费用下降，下限为 1 wei。事实证明，blob 的需求对费用非常缺乏弹性。经过一段清淡期后，费用可能崩溃到在经济上毫无意义的 1 wei，而需求回归时，协议需要一长串接近满载的区块才能爬回来。与此同时，用户退而竞标优先费用，这是一种体验更差的第一价格拍卖，资源使用也变得起伏剧烈。\n\n固定的最低费用（如 [EIP-7762](/eip-7762/)）会有帮助，但任何硬编码的数字都会随着 ETH 价格和吞吐量的变化而过时。EIP-7915 转而把行为锚定在**长期平均**的 blob 费用上，使该机制随时间保持中性。\n\n## 它如何运作\n\n1. **跟踪平均值。** 新的区块头字段 `base_fee_per_blob_gas_ema` 存储 blob 基础费用的指数移动平均。每个区块它向当前费用靠拢 `1 / EMA_DECAY`（`EMA_DECAY = 2**18`，半衰期大约一个月）。分叉后的第一个区块从 4 gwei 开始。\n2. **计算均值回归权重 `w`。** 如果当前费用等于或高于平均值，则 `w = 1`，适用常规的 EIP-4844 更新。如果低于平均值，`w` 随平均值 / 当前费用之比平滑增长，使用八次方根（三次整数平方根）和值为 64 的死区常量。为避免极端反应和溢出，该比值上限为 `10**6`。\n3. **弯曲 excess gas 的更新。** 更新不再是 `excess += used - target`，而变为 `excess += used·w − target/w`。blob 使用量计得更多、目标计得更少，因此当费用相对历史偏低时，费用上涨得快、下跌得慢。\n\n该曲线在每个比值下都保持平滑，因此不存在区块生产者会想去操纵的特定 blob 数量。\n\n## 示例代码\n\n修改后的更新逻辑，改编自规范中的 Python：\n\n```python\nEMA_DECAY = 2**18\nMEAN_REVERSION_DEADBAND = 64\nMEAN_REVERSION_FULLBAND = 10**6\n\ndef calc_excess_blob_gas(parent) -\u003e int:\n    if parent.excess_blob_gas + parent.blob_gas_used \u003c TARGET_BLOB_GAS_PER_BLOCK:\n        return 0\n    Up = 2**16\n    fee, ema = get_base_fee_per_blob_gas(parent), parent.base_fee_per_blob_gas_ema\n    if fee \u003e ema:\n        w = Up\n    else:\n        if ema // fee \u003e MEAN_REVERSION_FULLBAND:\n            ratio = Up * MEAN_REVERSION_FULLBAND      # cap extreme ratios\n        else:\n            ratio = Up * ema // fee\n        w = (ratio + Up * MEAN_REVERSION_DEADBAND) // (MEAN_REVERSION_DEADBAND + 1)\n        for _ in range(3):\n            w = integer_squareroot(w * Up)      # eighth root, upsampled\n    return parent.excess_blob_gas + parent.blob_gas_used * w // Up \\\n           - TARGET_BLOB_GAS_PER_BLOCK * Up // w\n\ndef calc_base_fee_per_blob_gas_ema(parent) -\u003e int:\n    return (parent.base_fee_per_blob_gas_ema\n            + get_base_fee_per_blob_gas(parent) // EMA_DECAY\n            - parent.base_fee_per_blob_gas_ema // EMA_DECAY)\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**：它没有被排入任何升级。\n- 它所针对的问题后来由 [EIP-7918](/eip-7918/) 以另一种方式解决，后者用 blob 在执行层的成本来为 blob 基础费用设定下限。\n- 它会增加一个新的区块头字段，并要求执行层实现 `integer_squareroot()`。\n- 规范中的安全提示：当费用远低于平均值时，满载的区块可能使 blob 费用每个区块翻倍，因此延迟一个区块的代价可能高出一倍。\n"}}}
