EIP-7840 · Final · Informational · 2024-12-12
EIP-7840: Add blob schedule to EL config files
Adds a per-fork blobSchedule (target, max and base-fee update fraction) to execution-client config files, so blob parameters can change between forks without an Engine API handshake.
What problem does it solve?
EIP-4844 hard-coded blob parameters in clients. The community wanted to raise blob throughput fork by fork, which means changing the target and max blobs per block, and also how quickly the blob base fee reacts.
Ideally only the consensus client would know these numbers. In practice execution clients need them too: for example, the eth_feeHistory RPC returns blobGasUsedRatio, which needs the max. An earlier idea, EIP-7742, would have sent the target over the Engine API every block and added a header field. EIP-7840 takes a simpler route: put the numbers in the client's configuration.
How it works
Execution-client configuration files (the chain config / genesis file) gain a blobSchedule object, keyed by fork name. For each fork it lists:
target: target blobs per block (drives the blob base fee);max: maximum blobs per block;baseFeeUpdateFraction: the denominator that controls how fast the blob base fee moves.
Clients must configure all three for each fork. If an entry is missing or incomplete, behavior is undefined and left to each client.
Rationale: passing these values over the Engine API every block was judged overkill, and a static per-fork config is a good middle ground.
Sample code
The example from the spec, with Cancun and Prague values:
{
"config": {
"chainId": 1,
"blobSchedule": {
"cancun": {
"target": 3,
"max": 6,
"baseFeeUpdateFraction": 3338477
},
"prague": {
"target": 6,
"max": 9,
"baseFeeUpdateFraction": 5007716
}
}
}
}
Reading the active entry in a tool (TypeScript):
type BlobParams = { target: number; max: number; baseFeeUpdateFraction: number };
function blobParamsFor(fork: string, cfg: { blobSchedule: Record<string, BlobParams> }) {
const p = cfg.blobSchedule[fork];
if (!p) throw new Error(`no blobSchedule entry for ${fork}`);
return p;
}
Things to know
- Status: Final (Informational). It describes a client configuration convention, not a consensus rule.
- The Prague values above correspond to the blob increase in EIP-7691.
- Later blob changes can be made through blob-parameter-only forks (EIP-7892); each such fork gets its own
blobScheduleentry. - If you run a private network or devnet, make sure every fork you activate has a complete entry; clients may refuse to start or behave differently otherwise.