Layer 2 (L2)
A layer 2, or L2, is a separate network that runs on top of a main blockchain, the layer 1, and leans on it for security. You transact on the L2, where fees are low and confirmations quick, and the L2 regularly writes the results back to the layer 1.
On Ethereum most L2s are rollups. They bundle thousands of transactions, execute them off the main chain and publish the compressed data to Ethereum. Optimistic rollups such as Arbitrum, OP Mainnet and Base assume each batch is valid and give anyone about seven days to challenge it, which is why a withdrawal through the official bridge takes a week. Zero-knowledge rollups such as zkSync Era, Starknet and Linea attach a cryptographic proof to every batch instead.
Fees fell sharply after Ethereum's Dencun upgrade in March 2024. It added blobs (EIP-4844), a cheaper place for rollup data, and a simple transfer on a large L2 now often costs less than a cent.
Bitcoin's best known layer 2 is the Lightning Network, where payments move through channels between users and only the opening and closing of a channel touch the main chain. Many L2s still depend on a single sequencer run by one company to order transactions, and bridges between networks have been a common target for hackers.
On TokenAlphabet
Related terms: Gas fee, DeFi (decentralized finance), Altcoin