0%
Level 7

Layer 2 Solutions

Scaling solutions built on top of existing blockchains

6 min read

The Scaling Challenge

Base-layer blockchains like Ethereum can only process limited transactions per second. When demand exceeds capacity, fees spike and transactions slow. Layer 2 solutions address this without sacrificing the security of the main chain.

L2s process transactions off the main chain but "settle" or "anchor" their results back to Layer 1, inheriting its security guarantees.

Think of it like a bar tab

Instead of running your credit card for every drink, you open a tab and settle at the end of the night. Layer 2s work similarly—many transactions happen 'off-chain,' and only the final result gets recorded on the main blockchain. This is much more efficient.

Types of Layer 2s

Different L2 approaches offer different tradeoffs between security, speed, cost, and compatibility. Most Ethereum L2s are "rollups" that bundle many transactions into one.

Optimistic Rollups: Assume transactions are valid by default. Anyone can challenge fraudulent transactions during a dispute period. Examples: Arbitrum, Optimism.

ZK Rollups: Use cryptographic proofs to verify transaction validity instantly. More complex but faster finality. Examples: zkSync, StarkNet.

State Channels: Participants open channels for repeated transactions (like Lightning Network on Bitcoin). Only opening and closing hit the main chain.

Validiums: Like ZK rollups but store data off-chain. Lower costs but different security assumptions.

Using Layer 2s

Bridging: To use an L2, you "bridge" assets from Layer 1. This locks tokens on the main chain and mints equivalent tokens on the L2.

Experience: Once bridged, L2s often feel like regular Ethereum—same wallets, similar interfaces, just faster and cheaper.

Withdrawals: Moving back to L1 varies by L2 type. Optimistic rollups have a challenge period (often 7 days). ZK rollups can be faster.

The L2 Landscape

Ethereum L2s: Most activity is on Ethereum L2s like Arbitrum, Optimism, Base, and zkSync. Billions in value locked.

Bitcoin L2s: Lightning Network for payments. Newer projects exploring smart contracts on Bitcoin L2s.

Fragmentation: Many L2s create liquidity fragmentation—assets spread across chains. Bridges help but add complexity and risk.

Why Layer 2s Matter

  • Enable cheap, fast transactions while inheriting L1 security
  • Make applications viable that were too expensive on mainnet
  • Key part of Ethereum's long-term scaling roadmap
  • Growing rapidly in adoption and TVL

Layer 2 Risks

  • Bridge exploits are a major attack vector—billions lost historically
  • Sequencer centralization in some L2s creates single points of failure
  • Withdrawal delays can lock funds for days (Optimistic rollups)
  • Newer L2s may have undiscovered bugs or security issues
  • Liquidity fragmentation across many L2s

Key Takeaways

  • Layer 2s scale blockchains by processing transactions off-chain
  • Rollups bundle transactions and settle results on Layer 1
  • Optimistic rollups assume validity; ZK rollups prove it cryptographically
  • Bridges move assets to L2s but introduce additional risk
  • Check withdrawal times and bridge security before committing funds

Glossary terms in this module: