EIP-8011 · Draft · Core · 2025-08-22
EIP-8011: Multidimensional Gas Metering
Meters gas separately per resource (compute, state access, size, memory, state growth, history) and fills blocks by the busiest resource only, raising throughput while users still see one gas limit and one fee.
What problem does it solve?
Today every operation's cost is added into one number, and a block is "full" when that sum reaches the gas limit. But a block full of computation and a block full of storage writes stress very different parts of a node. Because everything shares one budget, a block heavy in one resource leaves the others idle, and the single limit must be set conservatively for the worst mix.
EIP-8011 separates pricing from metering. Transactions are priced exactly as before, but the block tracks gas per resource, and only the most-used resource counts toward the block limit. Transactions that use different resources can then share a block, increasing throughput without changing what users see.
How it works
- Cost vectors. Every operation gets a 6-part cost:
(compute, access, size, memory, state, history). Pure compute opcodes put their whole cost incompute; memory-expanding opcodes split it betweencomputeandmemory. Assignments for state-touching opcodes,LOGopcodes and intrinsic transaction costs are still TBD, pending benchmarks. - Transactions are unchanged. A transaction still has one
gas_limit, pays fees on onegas_used(the sum of all six parts), and runs out of gas the same way. Clients additionally record agas_used_vector. - Blocks use the bottleneck. The block header gains a
max_gas_meteredfield: the largest of the six per-resource totals across the block. Validity becomesmax_gas_metered <= gas_limit. - Base fee follows the bottleneck. The EIP-1559 update rule uses
parent.max_gas_meteredin place ofparent.gas_used.
So the gas limit and target now mean "how much gas any single resource may consume per block".
Sample code
Computing the new header field, simplified from the spec:
DIMS = 6 # compute, access, size, memory, state, history
def compute_block_max_gas_metered(block) -> int:
totals = [0] * DIMS
for tx in block.transactions:
gas_used, gas_used_vector = execute_transaction(tx)
totals = [a + b for a, b in zip(totals, gas_used_vector)]
return max(totals)
assert block.max_gas_metered <= block.gas_limit
gas_used_delta = parent.max_gas_metered - parent.gas_target # feeds the base fee update
Illustrative example: with a hypothetical 60M limit, a block using 50M compute and 40M state gas is valid (bottleneck 50M), even though the sum is 90M. Each transaction in it still paid for its full summed gas.
Things to know
- Status: Draft. Large parts of the cost table are TBD, so the actual throughput gain is not yet known.
- Requires a hard fork, and adds a field to the block header.
- Blobs are excluded; they already have their own fee market (EIP-4844).
- It is designed as a stepping stone toward full multidimensional pricing such as EIP-7999, where each resource also gets its own base fee.
- Block building gets harder: builders must balance six dimensions. The authors argue simple greedy heuristics remain effective, limiting centralisation pressure.
- With a lower equilibrium base fee, stuffing a block on one cheap resource gets cheaper, which slightly weakens censorship resistance under FOCIL (EIP-7805).
- State and history growth are long-term limits, so their opcodes may need higher prices to keep growth in check as throughput rises.