EIP-7788 Dynamic target blob count
No call decision · Scaling & data · EIP status Withdrawn · created 2024-10-15
EIP-7788 proposes automatically adjusting the target amount of blob space every epoch based on average cost, in order to keep L2 transaction costs at a consistent level.
Why it is needed
Ethereum fixes the blob target at 50% of total capacity and uses EIP-1559 to smooth short-term demand fluctuations. However, when the target is fixed, if the target is higher than actual demand, blob space effectively gets priced for free, reducing the fees burned, which is negative for the ETH price and network security. For example, if the introduction of Data Availability Sampling (DAS) greatly increases the maximum blob count but demand does not immediately catch up, keeping the target unchanged could result in L2 transactions being charged almost nothing for months or years. This proposal has the target automatically rise and fall in line with the average blob cost, aiming to keep L2 transaction costs at a reasonable, steady level without core developers having to manually intervene every time demand changes.
What changes
Today
- The blob target is fixed at 50% of total capacity and stays that way regardless of actual demand.
- Even if the maximum blob count increases greatly (e.g. with DAS introduction), the target stays the same, which can make blob space nearly free.
- Changing the target to match shifts in demand requires direct intervention by core developers.
After EIP-7788
- At the end of every epoch, the CL receives the average blob cost (mean_blob_cost) from the EL and uses it to compute the target for the next epoch.
- If the average cost is above TARGET_BLOB_COST by at least BLOB_COST_CHANGE_MARGIN, the target increases by 1; if it is lower, the target decreases by 1.
- The target can only move within MIN_TARGET_BLOB_COUNT (1) and MAX_TARGET_BLOB_COUNT (3).
- As a result, the blob cost converges toward TARGET_BLOB_COST, keeping L2 transaction costs steady.
Who is affected
- L2 users: If blob costs are kept within a steady range, L2 transaction fee volatility is expected to decrease.
- Rollup operators: Blob space costs become easier to predict, which can be useful as a reference for designing service pricing.
- Client (CL/EL) development teams: A function to pass mean_blob_cost must be added to the Engine API, and this is premised on EIP-7742 being applied.
- Core developers: The need to manually adjust the target blob count for every shift in demand is reduced.
In depth
Dynamic targeting formula
The target blob count changes every epoch based on the average blob cost (mean_blob_cost) of the immediately preceding epoch. blob_cost_diff = mean_blob_cost - TARGET_BLOB_COST is computed; if this value is less than -BLOB_COST_CHANGE_MARGIN the direction is set to -1, if greater than BLOB_COST_CHANGE_MARGIN it is set to +1, and otherwise 0. next_epoch_blob_count is obtained by adding the previous epoch's target multiplied by the direction and TARGET_BLOB_COUNT_CHANGE_RATE (1), then clamping the result between MIN_TARGET_BLOB_COUNT and MAX_TARGET_BLOB_COUNT.
Parameter values
FORK_TIMESTAMP is TBD and not yet determined. TARGET_BLOB_COUNT_CHANGE_RATE is 1, MIN_TARGET_BLOB_COUNT is 1, and MAX_TARGET_BLOB_COUNT is 3, matching the current static target. BLOB_COST_CHANGE_MARGIN is 2^48 and TARGET_BLOB_COST is 2^49. This margin value is designed so that the target stays unchanged as long as the blob cost is within plus or minus 50% of TARGET_BLOB_COST.
Engine API extension and dependency on EIP-7742
The Engine API is extended so that the CL requests the mean_blob_cost for the epoch from the EL at the end of each epoch. The CL uses this value to compute the target blob count for the next epoch. This mechanism presupposes EIP-7742 (the approach where the CL sets blob parameters).
Basis for the TARGET_BLOB_COST value
Assuming the compressed size of a simple transfer transaction is 23 bytes, (23 / 125000) * TARGET_BLOB_COST is approximately 104 gwei. The original text explains that, at prices at the time, this means $1 covers blob space for roughly 3700 simple transfers. However, this is only the blob space cost; once rollup execution cost is added, the total cost of an L2 transaction is higher.
Reason for choosing ETH as the basis
An alternative of pegging the target cost to a fiat currency was also considered, but was excluded because choosing a specific fiat currency is not trust neutral, and bringing an exchange rate oracle into the protocol could become an attack vector. Having validators vote on the target blob cost was also considered, but was likewise judged not trust neutral, since validators could have a conflict of interest, for example by operating rollups.
Reason it is not applied to the block gas target
The same dynamic adjustment logic could also be applied to the block gas target, but the original text notes that demand for blockspace is generally always high, so cases where gas cost becomes excessively low are rare. It therefore argues that the gas target should stay fixed at the maximum average throughput the network can safely handle, and that, unlike blobs, it does not need a dynamic target.
Current status
This EIP's status is Withdrawn, meaning the proposal is no longer being pursued. The Security Considerations section is also left as TODO in the original text, stating only that 'discussion is needed,' indicating security review was not completed. The Backwards Compatibility, Test Cases, and Reference Implementation sections are also all left empty as N/A.