Under the Loom
Contents

§ 3.1 · Fees & Gas · 5 min

How Gas Markets Work: Base Fees, Priority Fees, and Block Space

Block space is an auction. How EIP-1559 gave it a posted price, why tips still exist, when fees spike, and what makes L2 gas a different market entirely.

The Loom Desk ·

SHEET 43 · FEES & GASUNDER THE LOOM
Fig. 3.1 — schematic. Watch the real thing in wevr.ai’s live tables.

Every blockchain sells exactly one product: space in the next block. The supply is rigid — the protocol fixes how much computation each block may contain — and the demand walks in the door whenever anyone wants anything. What prices that product is the fee market, and understanding it is less like learning finance and more like learning how a very well-engineered auction house runs. This is the machinery of gas, from the ground up.

First, what gas actually measures

Gas is the meter stick of computation. Every operation the chain can perform has a price in gas: adding two numbers costs a little, writing to contract storage costs a lot, calling another contract costs something in between. A transaction declares a gas limit — the most it is willing to burn — and execution stops, reverting everything it changed, when the meter passes that limit.

Two ceilings then shape the market. Each transaction has its own limit, and each block has a protocol-fixed budget for total gas. That block budget is the real product being sold. It cannot be stretched during a rush, minted on demand, or warehoused for later: every block offers the same fixed shelf, and every block empties it fresh. Rigid supply meeting bursty demand is the whole reason a market exists at all.

The old auction, and why it was maddening

Before Ethereum's EIP-1559 redesign, block space sold as a first-price sealed-bid auction. Every transaction attached a single fee bid, the proposer packed the highest bidders into the block, and the losers waited, re-bidding blind. You had to guess what everyone else would bid — too low and you sat through congestion, too high and you paid far more than the traffic required.

Worse, the price was a cliff. Blocks filled to their exact gas limit or sat slightly under, and the minimum winning bid lurched between "cheap" and "expensive" with no gradient in between, because nothing smoothed the transition from empty to full. Users hated it, wallets resorted to fee-oracle guesswork, and the guesswork was often wrong.

EIP-1559: a posted price with an auction on top

The 1559 redesign introduced a mechanism that is genuinely elegant, and worth understanding rather than just paying for. It split the fee into two parts.

The base fee is a posted price, set by the protocol rather than by bidders. Its rule is mechanical: after each block, the base fee moves up if that block ran hotter than a target fullness and down if it ran cooler, adjusting by a small fixed step proportional to how far off target the block was. Demand above the target pushes the posted price up; slack lets it drift down. No votes, no committee — just a thermostat wired directly to block fullness. Anyone can read the current price and the next block's likely price, which makes fee estimation mostly a solved problem: the guesswork era ended when the price became public.

The base fee is also removed from circulation — burned — rather than paid to the proposer. The economic subtleties of that are debated endlessly elsewhere; what matters mechanically is that proposers do not set it and cannot discount it. It is the price of admission, and everyone pays it alike.

The priority fee (the "tip") is the auction that survived on top of the posted price. It is paid to the proposer, and it answers the only question the base fee cannot: when a block is full, who gets in first? A transaction offering a larger tip jumps the queue of everyone offering less. In quiet times tips can be near zero — the base fee is the whole story. In rushes, the tip is the bidding war.

Why fees spike

Given the machinery, spikes write themselves. Block space is perfectly inelastic supply; demand arrives in stampedes — a hyped mint, a congested hour, a cascade of liquidations — and the thermostat can only move the base fee in bounded steps per block. Prices spike until the marginal bidder walks away, then the thermostat cools the posted price back down as blocks run under target. A fee chart under load is simply that negotiation made visible: a fast climb, a plateau while demand persists, a decay when it passes.

Nothing is broken when this happens. It is the designed alternative to the undemocratic option — long queues priced at nothing — and the equally ugly one — a free-for-all that fails under load. Scarcity gets priced; that is the mechanism working.

Why L2 gas is a different market

Rollup fees are built from different parts, and knowing the parts keeps you from comparing them unfairly. A rollup executes your transaction on its own machine, where compute is cheap, and then posts the evidence to the parent chain. So an L2 fee covers two things: the L2's own processing, which scales with L2 activity, and the cost of publishing data to L1, which scales with L1's data market.

Two consequences follow. L2 fees are structurally lower because one L1 data posting amortises across a whole batch of L2 transactions. And when the parent chain's data lane gets expensive, every L2 feels it at once, through no fault of its own — the rollup's thermostat is partly wired to someone else's weather. The arrival of dedicated blob space changed how that lane is priced; that is a thread we pull separately in the article on blobs and data availability.

Watch the thermostat work

Fee markets reward watching. The Ethereum charts on Wevr render the whole story in live data — base fees, block fullness, gas usage — so you can watch the thermostat respond to real demand bursts and cool-offs, on Ethereum and across the other chains in the same interface. When you can see the posted price breathe with block fullness, the mechanism stops being folklore and becomes something you can read at a glance.

The raw per-block tables behind those charts — with each block's gas usage and each transaction's fee breakdown — are in the live tables on Wevr, free to start, whenever you want to check the machinery yourself.

Index terms: gas · eip-1559 · fee-market

Next · § 3.2 Mempool Mechanics: Where Transactions Wait →