Layer 2
Also known as: L2, Layer-2 scaling
Protocol built on top of a base blockchain that processes transactions off the main chain while relying on it for security and final settlement.
Layer 2 refers to systems that increase a blockchain's capacity by moving most transaction processing off the base chain, known as layer 1, while still anchoring results to it. Base chains such as Bitcoin and Ethereum can process only a limited number of transactions, and fees rise when demand is high. A layer 2 system handles many transactions separately and periodically posts compressed data or cryptographic proofs to the main chain, which acts as the final arbiter of disputes and balances.
The main designs are rollups and channels. Optimistic rollups assume batches are valid unless someone submits a fraud proof during a challenge window, which typically delays withdrawals by about a week. Zero-knowledge rollups post a zero-knowledge proof that the batch was computed correctly. Payment channels, used by Bitcoin's Lightning Network, let parties transact off-chain and settle only the final balance. Sidechains have their own security and are often not counted as true layer 2. Ethereum's 2024 Dencun upgrade added cheaper data space for rollups.
Layer 2 systems lower fees and increase throughput, but they add complexity and new trust assumptions. Many rollups rely on a single operator to order transactions and can be upgraded by small groups holding administrative keys. Bridges that move assets between chains have been frequent targets of large thefts. Activity spread across many networks also fragments liquidity and complicates the user experience. Assessing a layer 2 means examining how much of the base chain's security it actually inherits and who can change its rules.
Key points
- Layer 2 systems process transactions off the main chain and settle results on it.
- Optimistic rollups rely on fraud proofs, while zero-knowledge rollups post validity proofs.
- Bitcoin's Lightning Network uses payment channels as a layer 2 design.
- Centralized operators, upgrade keys and bridge risks are important limitations.
Related entries
Lightning Network
Layer-two payment protocol built on Bitcoin that moves many small payments off-chain into channels for faster, cheaper transactions.
Ethereum
Decentralized blockchain platform, launched in 2015, that runs smart contracts and uses its native cryptocurrency, ether, to pay for computation.
Zero-Knowledge Proof
Cryptographic method that lets one party prove a statement is true to another without revealing any information beyond the fact that it is true.
Gas (Ethereum)
Unit measuring the computational work needed to execute operations on Ethereum, used to calculate transaction fees and limit resource use.
Bitcoin
First decentralized cryptocurrency, launched in 2009, whose transactions are recorded on a public proof-of-work blockchain.
Blockchain
Append-only ledger made of blocks of records linked by cryptographic hashes and replicated across a network that agrees on updates by consensus.
Decentralized Finance
Financial services such as lending, trading and derivatives built from smart contracts on public blockchains, operating without traditional intermediaries.
Featured in guides
Referenced by
Other entries that discuss or point to Layer 2.