A Layer 2 is a blockchain that runs on top of Ethereum and processes transactions separately, then posts compressed data or cryptographic proofs back to Ethereum’s base layer to inherit its security. The two main types are optimistic rollups (Arbitrum, Base, Optimism) and ZK-rollups (zkSync, Starknet). They exist because Ethereum mainnet processes roughly 15 to 20 transactions per second, which makes gas fees expensive when demand is high.
How Layer 2 scaling works
Optimistic rollups batch hundreds or thousands of transactions together, compress them, and post the data to Ethereum. The name “optimistic” refers to the assumption that all transactions are valid by default, unless a verifier submits a fraud proof within a 7-day challenge window. ZK-rollups generate a cryptographic validity proof for each batch and post that proof to Ethereum, which verifies it mathematically in a single on-chain transaction. Both models spread Ethereum’s base-layer gas cost across many transactions, which is how per-transaction fees drop by 95 to 99% compared to mainnet.
The trade-off between the two types is speed of settlement versus computational complexity. ZK-rollups settle in minutes to hours once the proof is verified; no challenge window required. Optimistic rollups settle faster during normal operation but carry the 7-day delay for withdrawals back to Ethereum.
What this means for traders
Gas fees on Arbitrum, Base, and Optimism run between $0.01 and $0.10 for a typical DEX swap versus $1 to $20 on Ethereum mainnet during busy periods. Most major DeFi protocols (Uniswap, Aave, Compound, GMX) are deployed on at least one L2 with identical mechanics. The fee difference changes the math substantially for smaller positions and higher-frequency operations.
Bridging assets to an L2 takes minutes. Bridging back from an optimistic rollup using the official bridge takes 7 days due to the challenge window. Bridge aggregators like Across and Stargate offer fast exits by absorbing that waiting-period risk in exchange for a small fee, typically 0.05 to 0.15% of the transferred amount. See also: optimistic rollups explained and ZK-rollups explained.
A concrete example
You want to provide $5,000 in liquidity to a Uniswap v3 ETH/USDC pool. On Ethereum mainnet, setting up a concentrated liquidity position costs $15 to $40 in gas. On Arbitrum, the same transaction costs $0.05 to $0.20. The pool mechanics, fee tiers, and impermanent loss dynamics are identical. The only meaningful difference is the cost of getting in and out, which changes the break-even math for smaller positions substantially.
Frequently asked questions
Are L2 assets as secure as Ethereum mainnet?
For well-established L2s, yes. Funds are protected by Ethereum’s security model. The residual risk is the L2’s bridge contract: if that contract is exploited, funds on the L2 could be at risk before the fraud proof system catches it. The largest L2s (Arbitrum, Base) have extensive audits and billions in total value locked, but smart contract risk remains.
Can I use any wallet on an L2?
Most EVM-compatible wallets, including MetaMask, Rainbow, and Rabby, work on Arbitrum, Optimism, and Base by adding the network in settings. Non-EVM L2s like StarkNet use different account models and require specific wallets.
What happens if an L2 shuts down?
Your funds should be recoverable to Ethereum mainnet through the L2’s bridge contracts, which remain operational even if the L2 stops producing blocks. This is part of why force-inclusion mechanisms exist in rollup design. No established L2 has done this, but it is a documented failure mode in rollup specifications.





