EIP-7762 · Stagnant · Core · 2024-08-31
EIP-7762: Increase MIN_BASE_FEE_PER_BLOB_GAS
Proposed raising the minimum blob base fee from 1 wei to 2^25 wei so blob prices reach market level quickly when demand spikes, instead of climbing from almost zero.
What problem does it solve?
EIP-4844 gave blobs their own EIP-1559-style base fee, with a floor of MIN_BASE_FEE_PER_BLOB_GAS = 1 wei. When blob demand is below the target, the fee sits at or near that floor, effectively free.
The trouble starts when demand rises above the target. The fee can only grow by about 12.5 % per full block, so climbing from 1 wei to a meaningful market price takes a long time. During that "price discovery" period the protocol fee lags far behind what users are actually willing to pay. The authors observed this happening several times after Dencun, not once as originally expected, and expected it to recur around future capacity increases.
How it works
Two changes at the fork:
- Higher floor.
MIN_BASE_FEE_PER_BLOB_GASgoes from1to2**25wei (about 0.034 gwei per blob gas). - Reset excess blob gas. At the first block after the fork,
excess_blob_gasis set to 0, so the new floor does not combine with accumulated excess and cause a sudden fee spike.calc_excess_blob_gastherefore needs the block timestamp to detect the fork.
def calc_excess_blob_gas(parent: Header, block_timestamp: int) -> int:
if parent.timestamp < FORK_TIMESTAMP and block_timestamp >= FORK_TIMESTAMP:
return 0
... # otherwise unchanged
The value was chosen conservatively. The authors' analysis pointed to about 2**27, but they went two powers of two lower so the floor would not be too high if the ETH price rose a lot.
Sample code
Blob fee at the floor, before and after (pseudocode using EIP-4844's formula):
GAS_PER_BLOB = 2**17
BLOB_BASE_FEE_UPDATE_FRACTION = 3338477 # Cancun value
def blob_base_fee(min_fee, excess_blob_gas):
return fake_exponential(min_fee, excess_blob_gas, BLOB_BASE_FEE_UPDATE_FRACTION)
print(blob_base_fee(1, 0) * GAS_PER_BLOB) # 131072 wei per blob
print(blob_base_fee(2**25, 0) * GAS_PER_BLOB) # 2**42 wei, about 0.0000044 ETH per blob
Reading the current blob base fee from a node:
const fee = await provider.send("eth_blobBaseFee", []);
console.log(BigInt(fee), "wei per blob gas");
Things to know
- Status: Stagnant. It was not adopted. The same concern, blobs being far too cheap relative to the cost of including them, was instead addressed by EIP-7918 (Final), which bounds the blob base fee by execution cost.
- A floor change requires a coordinated hard fork across all clients.
- Rollups posting blobs would have needed to update their fee estimation and posting strategies.
- Even with the higher floor, the spec's data suggested that L1 execution gas, not the blob fee, would still dominate the cost of most historical type-3 transactions.