Layer 2: Scaling Beyond the Base
Rollups, sidechains, bridges and MEV: how transactions get bundled, proven and brought back — and what sequencers, bridges and hidden fees have to do with it.
No base layer scales to global size on its own: Bitcoin manages a few transactions per second, Ethereum a few dozen without help. Layer-2 systems move execution and data outward and use the base layer only as an anchor for security and settlement. This chapter explains the designs, the bridges between them and the economics behind them — including how to tell how much trust an L2 still requires.
The idea in one paragraph
Rollups bundle transactions, execute them outside L1 and publish state commitments and reconstruction data on the base layer. Depending on the design, state updates rely on validity proofs or a challenge mechanism. Lower fees and higher throughput depend on load and implementation. Withdrawal rights, data availability and upgrade powers must be assessed for each system.
Rollups: bundle and prove
Rollups are the standard for Ethereum scaling. Two variants:
- Optimistic rollups initially assume transactions are valid. Anyone suspecting fraud can submit a fraud proof within a challenge window (typically seven days) — only then is the state final. Consequence: withdrawals back to the base layer take days.
- ZK rollups use validity proofs to verify batched state transitions. This relies on cryptographic assumptions and correct circuits, verifiers and contracts. An optimistic challenge period is unnecessary, but withdrawals still depend on proof generation, verification and L1 settlement. A proof does not remove bugs or privileged upgrade risks.
Both require data availability: enough data to reconstruct the state and, for optimistic systems, challenge invalid transitions. Rollups publish this data on L1; blobs provide availability for a limited protocol window rather than permanent archival storage. Validity-proof systems with external data availability are usually called validiums. Optimistic designs with external data availability have different names and risks.
Sidechains and state channels
Not all scaling is rollups: sidechains are independent blockchains with their own consensus and validator set, coupled to the base layer via two-way pegs. They have their own capacity limits and do not automatically inherit L1 security — distrust the sidechain validators, don't park money there. State channels (the Lightning principle from Chapter 5) generalize the same idea beyond payments to arbitrary state updates between fixed parties.
Bridges: the most expensive point in the system
Bridges connect L1 and L2, or different networks. Mechanisms vary: locking and minting, burn-and-release, or liquidity-based transfers. Bugs, compromised administrative keys and faulty verification can all cause losses. Check the exact network, bridge mechanism, upgrade powers and official contract address. An address-format check does not establish that a contract is genuine or safe; splitting transfers does not remove a shared contract risk.
MEV: the hidden tax
Maximal Extractable Value (MEV) is the profit block producers (and their suppliers) extract from transaction ordering: frontrunning, sandwich attacks, liquidation arbitrage. Daian et al. (“Flash Boys 2.0”, 2019) showed early that MEV is not an anomaly but a structural consequence of open transaction ordering. On L2s the problem moves to the sequencer: whoever centrally sets the order controls the MEV — users pay it as worse execution prices. Decentralized sequencer networks and encrypted mempools are active research; until then, MEV is part of effective transaction costs even when no fee line item shows it.
Reading risks the L2BEAT way
How decentralized is an L2 really? L2BEAT rates projects along a few incorruptible questions — a checklist for every L2 you use:
- Fraud/validity proofs live? Many rollups launch with admin keys and “training wheels” — proofs come later.
- Who can upgrade? A multisig-controlled proxy can change rules overnight; check exit windows.
- Forced exit possible? Can you reclaim funds without the sequencer's cooperation (escape hatch)?
- Data where? On-chain (rollup) or external (validium)? External means: another trusted party.
Rule of thumb: while upgrade keys sit with few parties, treat L2 balances like balances with a service provider — not like self-custody. As a reminder of what self-custody means: checklist and learning path.
Practice and limits
What L2s do well: cheap transfers, DeFi usage and micropayments at cent fees. Where caution applies: large bridge transfers, withdrawal windows on optimistic rollups (days!), address formats per network (check EIP-55, verify the network in your wallet — see the checksums article) and the illusion of decentralization in young projects. Transaction details (type, nonce, gas) read from raw hex with the transaction decoder; units convert with the ETH unit converter.
Sources
- Ethereum: ZK rollups
- Vitalik Buterin (2021): An Incomplete Guide to Rollups: vitalik.eth.limo
- L2BEAT — risk overview of all L2 projects: l2beat.com
- Daian et al. (2019): Flash Boys 2.0 — frontrunning and MEV: arxiv.org/abs/1904.05234
- Liao et al. (2025): Programming on Bitcoin (Layer-1/2 survey): Blockchain: Research and Applications
Continue in the atlas: back to the overview — or on to Chapter 8: Smart Contracts, back to Chapter 6: Taproot & Ordinals. Also: Bitcoin & Web3 Basics and the reading-list atlas. More numbers and formats: cheat sheet.