Layer 2 Explained: Rollups, Sidechains, and Cheaper Crypto Transactions

Ethereum is slow and expensive on purpose — every transaction is executed by every node on the network, which is what makes it secure and decentralised, and…

On this page
  1. The short answer
  2. Why Ethereum needs help
  3. What a rollup actually does
  4. Optimistic rollups: assume it is correct, let anyone challenge
  5. ZK rollups: prove it before Ethereum accepts it
  6. Sidechains: cheaper, but not Layer 2
  7. Validium and the data-availability spectrum
  8. The comparison, in one table
  9. EIP-4844: what the Dencun upgrade changed
  10. What to check before you use a Layer 2
  11. Sources and update time

The short answer

Ethereum is slow and expensive on purpose — every transaction is executed by every node on the network, which is what makes it secure and decentralised, and also what limits it to roughly 12–15 transactions per second. Layer 2 is the ecosystem’s answer: do the work somewhere cheaper, then anchor the result back to Ethereum so the security still comes from the main chain. The most important Layer 2 design is the rollup: it executes transactions off-chain, bundles them into a batch, and posts a compressed summary back to Ethereum. Two kinds of rollup prove the batch is correct in opposite ways — optimistic rollups assume it is correct and let anyone challenge it for about a week; ZK rollups attach a mathematical proof that Ethereum checks immediately. Sidechains look similar but are not the same thing: they run their own consensus and their own security, so they are cheaper for a different reason and carry different risks. This guide explains each design, compares them honestly, and shows what to check before you move money onto any of them.

Why Ethereum needs help

To understand Layer 2, start with the bottleneck. Ethereum commits one block about every twelve seconds, and each block targets 30 million gas with a hard ceiling of 60 million. Gas is the unit that measures how much work a transaction requires. At full capacity that works out to roughly 12–15 transactions per second — for the whole world, on one chain. A single popular app can fill the chain, and when demand exceeds supply, users bid against each other and fees spike. That is not a bug in Ethereum’s design; it is the trade-off. Every node re-executing every transaction is what makes the chain trustless, and it is also what makes it slow.

There are two broad ways to fix this. Onchain scaling changes the base layer itself — for years the plan was sharding, splitting the chain into pieces verified by subsets of validators. Offchain scaling leaves the base layer alone and moves work elsewhere. The Ethereum community has converged on the offchain path, and specifically on rollup-centric scaling: rollups do the execution, Ethereum does the settlement, data availability, and security. (Ethereum itself runs on proof of stake since its 2022 Merge; our proof of work vs proof of stake guide compares the two consensus models.) The addition of cheap blob data to Ethereum blocks — covered later in this guide — was built specifically to make rollups cheaper for users.

What a rollup actually does

A rollup is a separate chain that runs on top of Ethereum. The flow is the same for both kinds:

  1. You transact on the rollup. You submit a transaction to the rollup’s endpoint, just as you would on Ethereum. It confirms in seconds and costs a fraction of a mainnet fee.
  2. A sequencer orders and executes it. A rollup operator, usually called a sequencer, collects transactions, orders them, and executes them off-chain.
  3. The batch goes to Ethereum. The sequencer compresses the batch and posts it to Ethereum — the transaction data plus a new state root, a fingerprint of every balance after the batch.
  4. Ethereum settles it. The rollup’s smart contract on Ethereum records the state root. That is the anchor: the rollup’s history is now tied to Ethereum’s history, and anyone can verify the posted data.

The key question is step 4: how does Ethereum know the posted state root is correct? The two rollup families answer that question in opposite ways, and the difference decides almost everything else — withdrawal speed, cost, and maturity.

Optimistic rollups: assume it is correct, let anyone challenge

An optimistic rollup assumes every batch its operator posts is correct. It does not prove correctness up front. Instead, after a batch is posted, a challenge period begins — roughly seven days on the major networks (Arbitrum One sets it at 6.4 days; the OP Stack default withdrawal delay is seven days). During that window, anyone running a rollup node can recompute the batch. If the recomputed result differs from what the sequencer claimed, the watcher submits a fraud proof: an onchain dispute, usually resolved by bisecting the disputed computation until a single instruction remains, which Ethereum then executes to decide who was right. If the challenge succeeds, the bad state is corrected and the party that posted it loses its bond — a deposit locked up as a promise to act honestly.

The security rests on one assumption: at least one honest watcher is paying attention. Proof work happens only when someone disputes a claim, which keeps the system simple and cheap. The trade-off is the wait: because withdrawals to Ethereum must wait for the challenge period to end, moving funds from an optimistic rollup back to mainnet takes about a week. (Moving funds the other way — onto the rollup — is fast. And third-party bridges can shortcut the wait for a fee, but that introduces a separate counterparty — see our crypto exchanges guide for how custody changes when a platform sits between you and your assets.)

The major optimistic rollups are Arbitrum One, Optimism (OP Mainnet), and Base, which runs on the OP Stack built by Optimism. Together, optimistic rollups hold about 69% of the value secured on Layer 2 networks, according to L2BEAT data as of 5 November 2026 — they are the more mature family, and five optimistic rollups have reached Stage 1 maturity, the L2BEAT stage that means fraud proofs are live and meaningful.

Optimistic rollups are also the most compatible with existing Ethereum applications: because they do not need to generate proofs, they can run the Ethereum Virtual Machine (EVM) almost as-is, so developers can move apps over with few changes. Our smart contract guide explains the EVM programs these rollups execute.

ZK rollups: prove it before Ethereum accepts it

A ZK rollup takes the opposite approach. The operator executes the batch and then generates a validity proof — a short cryptographic argument (a ZK-SNARK or ZK-STARK) that shows the new balances follow correctly from the old ones under the rollup’s rules. The proof is posted to Ethereum alongside the state update, and a verifier contract on Ethereum checks it mathematically. An invalid batch is rejected because its proof fails. There is no challenge window, because there is nothing to challenge: validity is proven at submission time, and the state is final as soon as Ethereum verifies the proof.

The practical consequence is speed: withdrawals from a ZK rollup to Ethereum can finish in minutes to hours — the time it takes to generate and post the proof — instead of seven days. The cost moves elsewhere: generating validity proofs is computationally expensive, and the operator must pay for it. Historically, ZK rollups were also harder to make fully compatible with the EVM, because proving arbitrary smart-contract execution is much harder than proving simple transfers. Modern zkEVMs (zkSync Era, Polygon zkEVM, Scroll) now support Solidity with varying levels of compatibility, and Starknet uses its own language, Cairo, instead of Solidity.

The maturity picture is the mirror image of optimistic rollups. ZK designs hold about 9% of Layer 2 value secured, and as of 5 November 2026 only one of the eleven ZK rollups tracked by L2BEAT had reached Stage 1 — not because the proofs are weak, but because most ZK rollups still have whitelisted proposers and instant upgrade keys, centralised controls that hold them at Stage 0. The proofs are strong; the governance around them is still catching up.

Sidechains: cheaper, but not Layer 2

A sidechain is an independent blockchain that runs in parallel to Ethereum, with its own consensus mechanism and its own validators. It connects to Ethereum through a two-way bridge, and assets move across that bridge, but the sidechain is responsible for its own security. Ethereum does not check its work. That is the decisive difference, and it is why ethereum.org’s scaling documentation is explicit: sidechains derive their security separately from Mainnet, and are not Layer 2 solutions in the strict sense.

The best-known example is Polygon PoS (now often called Polygon), and Gnosis Chain is another. They are fast and cheap precisely because they do not inherit Ethereum’s security — they rely on their own, smaller validator sets. If the sidechain’s validators misbehave or its bridge is compromised, Ethereum cannot protect you. That is not a reason to avoid sidechains; it is a reason to understand what you are buying. A sidechain is a different chain with a bridge to Ethereum. A rollup is Ethereum, extended.

The confusion is understandable because marketing uses “Layer 2” loosely for all of these. The test is simple: if Ethereum stopped existing tomorrow, would the chain’s security guarantees survive? For a rollup, the answer is no — its security comes from Ethereum. For a sidechain, the answer is yes — it stands on its own consensus, for better and worse.

Validium and the data-availability spectrum

There is a third design worth knowing, because it shows the trade-off clearly. A validium works like a ZK rollup — it uses validity proofs, so state transitions are proven correct — but it does not store transaction data on Ethereum. Instead, operators store the data off-chain. That makes validiums very scalable (ethereum.org notes they can process around 9,000 transactions per second or more) and very cheap, because publishing data onchain is the expensive part. The cost is data availability: if the operators withhold the data, users cannot reconstruct the chain’s state or prove what they own, even though the proofs guarantee the state transitions were valid. Withdrawals are near-instant once the validity proof is verified, like a ZK rollup — but only if the data is available to build the withdrawal proof from.

Rollups, sidechains, and validiums sit on a spectrum defined by two questions: who checks the work, and where does the data live? Rollups: Ethereum checks, data on Ethereum. Validiums: Ethereum checks, data off-chain. Sidechains: nobody on Ethereum checks, data off-chain. Every scaling design is a position on that spectrum, and every position trades something away.

State channels are a fourth, older design — participants transact freely off-chain and settle only the final result with Mainnet — but they are niche today, useful mainly for repeated payments between fixed parties, and this guide does not cover them in depth.

The comparison, in one table

Optimistic rollupZK rollupSidechainValidium
How a batch is checkedAssumed valid; anyone can submit a fraud proof during the challenge periodA validity proof is verified by a contract on EthereumNot checked by Ethereum; its own consensusValidity proof verified on Ethereum
Transaction dataPosted to EthereumPosted to EthereumKept off-chainKept off-chain
Withdrawal to EthereumAbout 7 days (Arbitrum 6.4 days)Minutes to hoursDepends on the bridgeNear-instant once the proof verifies
Security comes fromEthereum, if one honest watcher existsEthereum, via the proofIts own validatorsEthereum for validity; operators for data
EVM compatibilityHighGrowing (zkEVMs)HighVaries
ExamplesArbitrum, Optimism, BasezkSync Era, Starknet, Scroll, Polygon zkEVMPolygon PoS, Gnosis ChainImmutable X, Sorare (per ethereum.org)
Maturity (Nov 2026)~69% of L2 value; 5 at Stage 1~9% of L2 value; 1 at Stage 1Established, separate securityNiche, specialised

EIP-4844: what the Dencun upgrade changed

Until March 2024, rollups posted their batches to Ethereum as calldata — the input field of a normal transaction. Every Ethereum node processes calldata and stores it permanently, so rollups were paying for permanent storage when a few weeks of availability would have been enough, and they shared the same gas market as every other transaction, so busy periods on mainnet pushed rollup fees up too.

The Dencun upgrade, activated on 13 March 2024, introduced EIP-4844 (proto-danksharding): a new transaction type carrying blobs — large, fixed-size chunks of data (about 128 KB each) attached to a transaction, stored on the consensus layer rather than the execution layer, with their own separate fee market. At launch, each Ethereum block could carry up to six blobs (a target of three, a maximum of six), and blob data is pruned after roughly 18 days — long enough for rollups and other parties to store the data elsewhere. Later upgrades raised that capacity: Pectra (7 May 2025, EIP-7691) lifted the target to six and the maximum to nine blobs per block, and two blob-parameter-only forks after the Fusaka upgrade — BPO1 on 9 December 2025 (target 10, maximum 15) and BPO2 on 7 January 2026 (target 14, maximum 21) — brought it to a target of 14 and a maximum of 21 blobs per block as of January 2026. Because blobs have a separate fee market and a dedicated supply, the cost of posting rollup data dropped dramatically: several major rollups saw fee reductions of 90% or more within days of the upgrade, with reported average fees falling from roughly $0.20–$0.50 to about $0.01 or less on Optimism, Arbitrum, Base, and zkSync Era.

EIP-4844 is called “proto-danksharding” because it lays the groundwork for full danksharding, which would increase blob capacity further still and add full data-availability sampling. Part of that roadmap is now live: the Fusaka upgrade (3 December 2025) introduced PeerDAS (EIP-7594), which lets nodes verify blob data availability by sampling instead of downloading every blob — the step that made the higher blob counts above possible. Full danksharding itself is still on the roadmap, not live. The important point for a beginner is simpler: the reason your Layer 2 transaction is cheap today is not only the rollup — it is also a 2024 upgrade to Ethereum itself that gave rollups their own cheap data lane. Our gas fees guide covers the fee mechanics this upgrade changed.

What to check before you use a Layer 2

Rollups inherit Ethereum’s security for state correctness — but not for everything. Sequencing, liveness, bridges, and governance can still introduce trust assumptions. Before moving meaningful funds onto any Layer 2, work through these checks:

  1. Which design is it, really? Is it a rollup (data on Ethereum), a validium (data off-chain), or a sidechain (own consensus)? Marketing often blurs this. The answer decides what Ethereum actually guarantees.
  2. Who runs the sequencer? Most rollups today have a single sequencer operated by one company. That is a centralisation and censorship risk: a single sequencer can delay or reorder your transactions, and if it goes down, the chain stalls until someone else takes over. Check whether the rollup has a decentralised sequencer or a forced-inclusion mechanism that lets you bypass it.
  3. Can the contracts be upgraded instantly? Many rollups still have upgrade keys that let a small group change the bridge contracts without delay. L2BEAT’s stages track this: Stage 1 means fraud or validity proofs are live and upgrades have a meaningful delay. As of November 2026, most ZK rollups were still at Stage 0 for exactly this reason.
  4. How do withdrawals work, and how long do they take? Optimistic rollups: about seven days to Ethereum directly. ZK rollups and validiums: minutes to hours. If you need the money back fast, that difference matters — and third-party fast bridges charge for the shortcut and add their own risk.
  5. Where does the bridge sit? Moving assets onto a rollup means locking them in a bridge contract on Ethereum. Bridges are the most hacked infrastructure in crypto — our cross-chain bridges guide is a draft in the same batch and not yet published, so no link is added here; the link should be added only once that article is live. For now, the point stands on its own: check the bridge’s audits, its total value locked, and whether it has timelocks on upgrades.
  6. What happens if the rollup disappears? Because rollup data is posted to Ethereum, users can in principle reconstruct the state and exit even if the operator vanishes — that is the point of data availability. For validiums and sidechains, that guarantee does not hold in the same way. Know which one you are on.
  7. Fees are not the whole story. A rollup that is cheap because it cut security corners is not a bargain. Compare the fee against the design, not against other rollups alone.

Layer 2 is where most Ethereum activity happens now, and for ordinary transactions it is the right default: the same applications, the same assets, a fraction of the cost, with Ethereum still anchoring the result. The mistake is treating every chain with “L2” in its marketing as equally safe. The design — who checks the work, where the data lives, who runs the sequencer — is the whole story, and it is written down in the project’s own documentation for anyone willing to read it. If you are new to the technology underneath all of this, our Blockchain 101 guide is the place to start, and How Blockchain Works explains the chain structure rollups build on.

Sources and verification

Sources and update time

Sources checked 2026-11-23. This guide is general educational information, not investment advice.

Last updated: 2026-11-23. Rollup designs, L2BEAT stages, and fee levels change frequently — re-check the project’s own documentation and L2BEAT before moving funds. The Fusaka upgrade (December 2025) introduced PeerDAS for data-availability sampling; full danksharding is still on the roadmap, not live.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *