§ 4.2 · Layer 2 Mechanics · 4 min
How Rollups Work: Sequencing, Batches, and Proofs
Rollups run transactions off-chain and post the evidence on-chain. How sequencers order batches, and how fraud proofs and validity proofs keep them honest.
A layer 2 is often described as "a faster chain bolted onto another chain," which is true the way a delivery truck is "a faster horse." The actual design is more interesting: a rollup is a workshop attached to a parent chain, where the heavy work happens off-chain and the accounting for that work happens on-chain. Execution moves; evidence stays. Every design decision in a rollup — the sequencer, the batches, the proofs — exists to make that split trustworthy.
This article walks the workshop floor.
The core trick: execute off-chain, prove on-chain
Here is the entire idea in one sentence: the rollup network runs your transactions on its own machines, then posts to the parent chain a compact, tamper-evident record of what happened — and enough data for anyone to check it.
Why bother? Because the parent chain's block space is expensive and scarce. Executing every transaction on L1 means paying L1 prices for everything. A rollup instead pays for a summary — the results of executing hundreds or thousands of transactions — and the checking machinery is arranged so that nobody has to trust the summary's author. The parent chain becomes the notary and the archive; the rollup becomes the factory floor.
The security question follows immediately: who guarantees that the posted summary matches what the transactions actually did? Everything distinctive about rollups is an answer to that question.
The sequencer: the floor manager
Transactions arrive at the rollup and meet the sequencer — the component that receives them, puts them in order, executes them, and assembles the results into batches for posting. Ordering is real power: within a block, who jumps the queue is the sequencer's call, and ordering affects outcomes (just ask anyone who has front-run, or been front-run, on a busy block).
In practice, many major rollups today run a single primary sequencer — an operator, frequently the team that built the rollup. That sounds like a trust problem, and it is a managed trust problem: the design goal of a rollup is that the sequencer can reorder or delay, but cannot ultimately falsify — cannot post results that execution did not produce, and cannot make the posted history say something the data contradicts.
Two backstops make that promise real. One is the proof system — fraud proofs or validity proofs, next section — which polices the results. The other is forced inclusion: the parent chain itself typically offers an escape hatch where any user can submit a transaction directly into the rollup's canonical queue, bypassing a sequencer that is censoring or stalling. The sequencer manages the flow; it does not own the door.
Optimistic rollups: trust, but make it challengeable
The optimistic family takes a bold-sounding position: accept posted batches as true without re-checking them — unless someone objects within a challenge window. During that window, anyone holding the data can dispute a bad batch by submitting a fraud proof: a pinpoint demonstration, executed on the parent chain, that the claimed result contradicts the claimed inputs. If the challenge holds, the batch is corrected and the dishonest poster loses a bond. If no one challenges in time, the batch stands as final.
The economics work like a neighbourhood watch: honest participants mostly do nothing, because checking occasionally is cheap and the penalty for cheating is a forfeited bond. A fraudulent batch must survive a public challenge window in which any one motivated observer can destroy it. The cost of that simplicity is latency — withdrawals traditionally wait out the challenge window, unless a liquidity provider fronts them — because "final" is only reached once the window for objection closes.
ZK rollups: prove first, ask no questions
The validity-proof family removes the window entirely. Every batch ships with a cryptographic validity proof: a compact mathematical object, verified cheaply on the parent chain, that certifies "executing these inputs genuinely produces these results." No one assumes anything; the parent chain checks the proof before accepting the batch, the way a border checks a passport rather than interviewing the traveller.
The cost is engineering: generating validity proofs for general-purpose computation is one of the hardest problems in the field, and the machinery — proving systems, provers, circuits — is substantial and specialised. The payoff is the mirror image of optimistic's weakness: no challenge window, faster exits, and a parent chain that never accepts an unproven batch in the first place.
Same loom, different quality control. Optimistic rolls post first and dares objectors to find a flaw; ZK rolls finish the inspection before the goods leave the factory.
What the parent chain still provides
Notice what the rollup inherits and what it doesn't. It inherits settlement and data availability from L1 — its history is anchored in the parent chain's consensus, which is precisely why the rollup's state can be reconstructed and checked by anyone. It does not inherit L1's execution costs, which is the entire economic point. That data-posting lane — what gets published, where, and at what price — has its own story, and it changed significantly when Ethereum introduced dedicated blob space. That is the next thread to pull.
Tour the workshops
The rollup designs above are not theory; they are running in production, and their output is public data. Optimism on Wevr and Base on Wevr show two major rollups in live charts and tables — batches landing, activity flowing through the L2s, with the same decoded detail the platform gives every chain. Compare an L2's rhythm with its parent chain's and the split between factory floor and notary's office stops being a metaphor.
When you are ready, the companion piece on blobs explains exactly how those batches get published — and why that lane got its own price tag.