EIPs Explained

EIP-7788 · Withdrawn · Core · 2024-10-15

EIP-7788: Dynamic target blob count

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.

What problem does it solve?

Blob 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.

The 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.

How it works

At 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:

Parameter Value
TARGET_BLOB_COST 2^49 wei
BLOB_COST_CHANGE_MARGIN 2^48 wei (a ±50 % dead band)
TARGET_BLOB_COUNT_CHANGE_RATE 1
MIN_TARGET_BLOB_COUNT 1
MAX_TARGET_BLOB_COUNT 3
  • Average cost above target + margin: blobs are scarce, so the target rises (more blobs are "normal", fees ease).
  • Average cost below target − margin: blobs are cheap, so the target falls, pushing fees up toward the desired level.
  • The consensus layer requests the epoch's mean blob cost from the execution layer through an Engine API extension, which depends on EIP-7742 (the CL telling the EL the blob target).

The MAX_TARGET_BLOB_COUNT of 3 matched the target at the time; the author expected it to rise later.

Sample code

The update rule, from the spec:

TARGET_BLOB_COST = 2**49
BLOB_COST_CHANGE_MARGIN = 2**48
MIN_TARGET_BLOB_COUNT, MAX_TARGET_BLOB_COUNT = 1, 3

def next_target(previous_target, mean_blob_cost):
    diff = mean_blob_cost - TARGET_BLOB_COST
    if diff < -BLOB_COST_CHANGE_MARGIN:
        direction = -1
    elif diff > BLOB_COST_CHANGE_MARGIN:
        direction = 1
    else:
        direction = 0
    return max(min(MAX_TARGET_BLOB_COUNT, previous_target + direction), MIN_TARGET_BLOB_COUNT)

print(next_target(3, 2**47))  # cheap blobs -> 2
print(next_target(2, 2**50))  # expensive blobs -> 3

Things to know

  • Status: Withdrawn. This mechanism is not part of Ethereum. Blob targets are instead set explicitly in upgrades, including blob-parameter-only forks (EIP-7892), and the "blobs too cheap" problem was addressed by EIP-7918, which bounds the blob base fee by execution cost.
  • 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.
  • 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.
  • Security considerations were never completed in the draft.

#blobs #fees #rollups #core #withdrawn

Details

Authors
Marc Harvey-Hill (@Marchhill)
Status
Withdrawn
Type
Standards Track / Core
Created
2024-10-15
Requires

Machine-readable: Markdown · JSON