Layer 2 Scaling
Ethereum processes roughly 15-30 transactions per second on Layer 1. Layer 2 (L2) solutions process transactions off the main chain while inheriting its security, dramatically increasing throughput and reducing fees.
Why Layer 2?
Layer 1 (Ethereum Mainnet):
ββββββββββββββββββββββββββββββββββββββββ
β TPS: ~15-30 β
β Gas Fees: $1-$50+ during congestionβ
β Finality: ~12-15 minutes β
β Security: Maximum β
ββββββββββββββββββββββββββββββββββββββββ
Layer 2 (Rollups):
ββββββββββββββββββββββββββββββββββββββββ
β TPS: 2,000-4,000+ β
β Gas Fees: $0.01-$0.10 β
β Finality: Seconds to minutes β
β Security: Inherited from L1 β
ββββββββββββββββββββββββββββββββββββββββ
Rollup Types
Optimistic Rollups:
ββββββββββββββββββββββββββββββββββββββββ
β Assume transactions are valid β
β Post transaction data to L1 β
β Challenge period: 7 days β
β Fraud proof if dispute β
β Examples: Optimism, Arbitrum β
ββββββββββββββββββββββββββββββββββββββββ
Zero-Knowledge (ZK) Rollups:
ββββββββββββββββββββββββββββββββββββββββ
β Prove validity with math (zk-SNARK)β
β No challenge period needed β
β Faster finality β
β More complex to implement β
β Examples: zkSync, StarkNet, Polygon β
β zkEVM β
ββββββββββββββββββββββββββββββββββββββββ
Other Scaling Solutions
State Channels: Two parties open a channel, transact off-chain, and settle on-chain. Example: Bitcoin Lightning Network.
Sidechains: Independent blockchains connected to L1 via bridges. Example: Polygon PoS, Gnosis Chain.
Plasma: Child chains that periodically commit state roots to L1. Largely superseded by rollups.
Bridging to L2
Moving assets to Layer 2:
ββββββββββββββ Bridge ββββββββββββββ
β Ethereum βββββ Lock βββββΊβ L2 Chain β
β (L1) ββββ Unlock ββββ β
ββββββββββββββ ββββββββββββββ
1. Deposit ETH/token into L1 bridge contract
2. Bridge mints equivalent on L2
3. Use L2 for fast, cheap transactions
4. Bridge back when ready to exit
β οΈ Bridge risk: Bridges are common attack targets