EIP-7915 · Stagnant · Core · 2025-03-23
EIP-7915: Adaptive mean reversion blob pricing
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.
What problem does it solve?
EIP-4844 prices blobs with an 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.
A fixed minimum fee (as in 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.
How it works
- Track an average. A new header field
base_fee_per_blob_gas_emastores an exponential moving average of the blob base fee. Each block it moves1 / EMA_DECAY(withEMA_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. - Compute a mean-reversion weight
w. If the current fee is at or above the average,w = 1and the normal EIP-4844 update applies. If it is below,wgrows 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 at10**6to avoid extreme responses and overflow. - Bend the excess-gas update. Instead of
excess += used - target, the update becomesexcess += 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.
The schedule stays smooth at every ratio, so there is no particular blob count that block producers would want to game.
Sample code
The modified update, adapted from the spec's Python:
EMA_DECAY = 2**18
MEAN_REVERSION_DEADBAND = 64
MEAN_REVERSION_FULLBAND = 10**6
def calc_excess_blob_gas(parent) -> int:
if parent.excess_blob_gas + parent.blob_gas_used < TARGET_BLOB_GAS_PER_BLOCK:
return 0
Up = 2**16
fee, ema = get_base_fee_per_blob_gas(parent), parent.base_fee_per_blob_gas_ema
if fee > ema:
w = Up
else:
if ema // fee > MEAN_REVERSION_FULLBAND:
ratio = Up * MEAN_REVERSION_FULLBAND # cap extreme ratios
else:
ratio = Up * ema // fee
w = (ratio + Up * MEAN_REVERSION_DEADBAND) // (MEAN_REVERSION_DEADBAND + 1)
for _ in range(3):
w = integer_squareroot(w * Up) # eighth root, upsampled
return parent.excess_blob_gas + parent.blob_gas_used * w // Up \
- TARGET_BLOB_GAS_PER_BLOCK * Up // w
def calc_base_fee_per_blob_gas_ema(parent) -> int:
return (parent.base_fee_per_blob_gas_ema
+ get_base_fee_per_blob_gas(parent) // EMA_DECAY
- parent.base_fee_per_blob_gas_ema // EMA_DECAY)
Things to know
- Status is Stagnant: it has not been scheduled for any upgrade.
- The problem it targets was addressed differently by EIP-7918, which bounds the blob base fee by the execution-layer cost of a blob.
- It would add a new header field and require
integer_squareroot()on the execution layer. - 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.