blockchain

What is Layer 2?

A secondary protocol built on top of a layer-1 blockchain to improve scalability and reduce transaction costs. Layer 2 solutions process transactions off the main chain and periodically settle them on layer 1 for security. Examples include Arbitrum, Optimism, and the Lightning Network.

Layer 2 (L2) solutions are protocols built on top of layer-1 blockchains to address scalability limitations. They process transactions off the main chain and periodically post compressed data or proofs back to the L1 for final settlement and security. This approach allows L2s to offer dramatically higher throughput and lower fees while inheriting the base layer's security guarantees.

The two primary L2 types for Ethereum are optimistic rollups (Arbitrum, Optimism, Base) and ZK-rollups (zkSync, StarkNet, Polygon zkEVM). Optimistic rollups assume transactions are valid and only run computations if fraud proofs are submitted. ZK-rollups generate cryptographic proofs of validity for each batch. Bitcoin's Lightning Network is a different L2 approach focused on payment channels. The L2 ecosystem has grown to process more transactions than Ethereum's base layer while reducing costs by 90-99%.

Key Facts

  • Arbitrum and Base are the two largest Ethereum L2s by TVL.
  • L2s have reduced Ethereum transaction costs by 90-99%.
  • EIP-4844 (proto-danksharding) dramatically reduced L2 data posting costs in 2024.
  • L2s collectively process more transactions than Ethereum's base layer.
  • The Lightning Network is Bitcoin's primary L2 for fast payments.

Frequently Asked Questions

Which layer 2 should I use?

Arbitrum has the largest DeFi ecosystem. Base (by Coinbase) is popular for consumer apps. Optimism is known for governance innovation. For Bitcoin payments, the Lightning Network is the main L2. Choose based on the applications and liquidity you need.

Are layer-2 transactions secure?

L2s inherit security from their base layer. Optimistic rollups have a dispute period where fraud can be challenged. ZK-rollups provide mathematical proofs of validity. Both ultimately settle on L1, making them nearly as secure as L1 transactions, though with some additional trust assumptions.

How do I use a layer-2 network?

Add the L2 network to your wallet (MetaMask supports most L2s). Bridge assets from Ethereum using the official bridge or a third-party bridge. Once on the L2, transactions work the same way but are much cheaper and faster.

Something new is coming

gpu is building a new way to trade crypto. Join the waitlist to be first in line.

Related terms

gpu

Join the waitlist

Sign up to be the first to know when gpu launches.