What are layer 2 networks? Rollups, fees and how to use them
Layer 2 networks make Ethereum transactions faster and cheaper by processing them off the main chain. Learn how optimistic and zero-knowledge rollups work, how to move funds to them, what the trade-offs are and how to avoid common mistakes.
Ethereum can process only a limited number of transactions per block. When demand is high, fees rise to a level that makes small payments or simple swaps uneconomical. Layer 2 networks solve this by moving most of the work off Ethereum's main chain while still relying on it for security. Today, a large share of everyday activity in the Ethereum ecosystem happens on layer 2s. This guide explains how they work and how to use them safely.
Layer 1 and layer 2
Layer 1 is the base blockchain, such as Ethereum, which provides security and final settlement. Layer 2 networks run on top of it. They execute transactions separately, bundle many of them together and post compressed data or proofs back to layer 1. Because Ethereum stores the data needed to reconstruct the layer 2 state, users can, in principle, recover their funds even if the layer 2 operator stops working.
Rollups: the dominant design
Optimistic rollups
Optimistic rollups, such as Arbitrum, Optimism and Base, assume transactions are valid by default. They post transaction data to Ethereum and allow a challenge period, typically around seven days, during which anyone can submit a fraud proof if something is wrong. This is why withdrawals from these networks to Ethereum through the official bridge take about a week.
Zero-knowledge rollups
ZK rollups, such as zkSync, Starknet, Scroll and Linea, generate cryptographic validity proofs that show the new state is correct. Ethereum verifies the proof, so no long challenge period is needed. Withdrawals can finalize faster, depending on how often proofs are submitted.
Why fees are lower
Layer 2s split the cost of posting data to Ethereum across many transactions. Ethereum upgrades introduced a cheaper data format designed specifically for rollups, which reduced layer 2 fees significantly. A swap that costs several dollars on mainnet can cost a few cents on a layer 2, though fees still rise during heavy demand.
How to get funds onto a layer 2
- Withdraw directly from an exchange on the layer 2 network, if supported. This is often the cheapest and simplest route.
- Use the official bridge from Ethereum mainnet. Deposits usually take minutes.
- Use a third-party bridge to move between layer 2s or from other chains, accepting the bridge's risk.
Remember that you need ETH on the layer 2 itself for gas. Many people withdraw a small amount of ETH on the layer 2 network along with their tokens.
Withdrawing back
| Route | Time | Cost and risk |
|---|---|---|
| Official optimistic rollup bridge | About a week | Low fees, high security |
| Official ZK rollup bridge | Hours, varies | Depends on proof schedule |
| Third-party fast bridge | Minutes | Fee plus bridge risk |
| Deposit to an exchange on the layer 2 | Minutes | Relies on the exchange |
Trade-offs and risks
Sequencers
Most layer 2s use a sequencer that orders transactions. Many sequencers are still run by a single company. A centralized sequencer can delay or censor transactions temporarily or go offline, though designs usually provide a way to force transactions through Ethereum.
Upgrade keys
Layer 2 contracts are often upgradeable by a council or multisig. This allows fixes but also introduces trust in those key holders. Independent trackers rate layer 2s by how decentralized and trust-minimized they are.
Bridge and contract risk
Funds on a layer 2 depend on its bridge contracts and proof systems. Bugs could put funds at risk.
Fragmentation
Each layer 2 has separate balances, liquidity and token versions. The same address shows different balances on each network, which can confuse users and lead to wrong-network transfers.
Choosing a layer 2
When deciding which layer 2 to use, consider where your exchange supports direct deposits and withdrawals, which applications you want to use, how deep liquidity is for the tokens you trade and how decentralized the network's sequencer and upgrade process are. Independent dashboards track these properties and the value secured on each network. Using one or two well-supported layer 2s keeps things simple and reduces the chance of network mix-ups.
Layer 2s beyond Ethereum
Other ecosystems have their own scaling solutions. Bitcoin's Lightning Network enables fast, cheap payments through payment channels. Various sidechains and app-specific chains also call themselves layer 2s, though their security models can differ significantly from rollups. Always check what secures a network before moving large amounts.
Using layer 2s safely
- Check that your wallet and exchange support the specific layer 2.
- Keep some ETH on the layer 2 for gas.
- Verify token contract addresses on that network.
- Use official bridges for large amounts when you can wait.
- Understand withdrawal times before you need the money.
- Test with small amounts on new networks.
Key takeaways
- Layer 2s process transactions off Ethereum and post data or proofs back to it.
- Optimistic rollups use challenge periods; ZK rollups use validity proofs.
- Fees are much lower, but each network has separate balances and tokens.
- Sequencers and upgrade keys add trust assumptions.
- Match networks carefully and keep ETH for gas on each layer 2.