Layer 2 (L2) refers to secondary frameworks or protocols built on top of an existing Layer 1 blockchain to improve its scalability and efficiency. L2 solutions process transactions off the main chain while still leveraging the security of the underlying L1.
Types of Layer 2 Solutions
Optimistic Rollups: Assume transactions are valid by default and only run computation in case of disputes (Arbitrum, Optimism, Base).
ZK-Rollups: Use zero-knowledge proofs to verify transaction validity (zkSync, StarkNet, Polygon zkEVM).
State Channels: Off-chain channels for direct transactions between parties (Lightning Network for Bitcoin).
Benefits
Layer 2 solutions dramatically reduce transaction costs, increase throughput (transactions per second), and decrease confirmation times while maintaining the security guarantees of the underlying Layer 1.
Popular Layer 2s
On Ethereum: Arbitrum, Optimism, Base, zkSync, StarkNet, Polygon zkEVM. On Bitcoin: Lightning Network, Stacks.