Skip to main content
DFR Publication
Donate
← DeFi glossary

Glossary · L

Layer 2 (L2)

Key takeaway

A secondary network built on top of a Layer 1 blockchain that processes transactions off the main chain and posts compressed proofs back to L1. L2 networks offer dramatically lower fees and higher speed. Major Ethereum L2s include Arbitrum, Optimism, Base, and zkSync.

Last updated

How Layer 2 works in practice

A Layer 2 executes transactions off the base chain and posts the results back to it, inheriting the L1's settlement guarantees at a fraction of the cost. Rollups are the dominant design, differing mainly in how they prove correctness.

Worked example

An L2 batches thousands of transactions and posts one compressed record to Ethereum. Users pay a small fraction of L1 fees while retaining the ability to prove their state against L1 data.

Figures are illustrative and chosen to be checkable, not live market data.

The mistake that costs people money

Most L2s still run a centralised sequencer that orders transactions, and withdrawal to L1 can involve a challenge period of up to a week on optimistic designs. 'Secured by Ethereum' does not mean 'behaves like Ethereum'.

Layer 2: common questions

What is Layer 2?
A secondary network built on top of a Layer 1 blockchain that processes transactions off the main chain and posts compressed proofs back to L1. L2 networks offer dramatically lower fees and higher speed. Major Ethereum L2s include Arbitrum, Optimism, Base, and zkSync.
Which DeFi concepts are most closely linked to Layer 2?
Layer 2 is closely connected to Optimistic Rollup, zkRollup, Layer 1 (L1). Understanding how these concepts interact helps evaluate real yield, execution costs and smart-contract risk in decentralised finance.
What is the main risk or misconception around Layer 2?
Most L2s still run a centralised sequencer that orders transactions, and withdrawal to L1 can involve a challenge period of up to a week on optimistic designs.
Which guide covers Layer 2 in practice?
Read "What Are Gas Fees?" for full context on how Layer 2 affects real DeFi workflows, costs and risk management.

Related DeFi glossary terms

  • Optimistic Rollup A Layer 2 scaling solution that processes transactions off Ethereum mainnet and posts compressed transaction data as calldata or blobs to Ethereum. Unlike zkRollups, optimistic rollups assume transactions are valid by default ('optimistically') and rely on fraud proofs — any validator can challenge an invalid transaction within a 7-day challenge window. Arbitrum One and Optimism are the leading optimistic rollups. Post-Pectra, their blob fees have fallen significantly.
  • zkRollup A Layer 2 scaling solution that batches hundreds of transactions off-chain and submits a cryptographic proof (zero-knowledge proof) to Ethereum, verifying the validity of all transactions without revealing their contents. zkRollups offer Ethereum-level security with drastically lower fees. zkSync Era and Polygon zkEVM are leading zkRollup networks.
  • Layer 1 (L1) The base blockchain layer — the main chain itself (Ethereum, Bitcoin, Solana). Layer 1 handles final settlement and security but often has limited throughput and high transaction costs. All transactions ultimately settle on L1.
  • zkEVM A zero-knowledge rollup that is Ethereum Virtual Machine compatible — able to execute and prove Ethereum smart contracts using zero-knowledge proofs. zkEVMs combine the EVM's smart contract compatibility with zkRollup security and efficiency. Building a zkEVM is technically more complex than an optimistic rollup, but eliminates the 7-day challenge period, enabling faster withdrawals to Ethereum mainnet. Polygon zkEVM, zkSync Era, Scroll, and Linea are the leading zkEVM implementations.
  • Ethereum The second-largest cryptocurrency by market capitalisation and the dominant blockchain for DeFi. Ethereum's programmability (via smart contracts) enabled the creation of DeFi applications. Ethereum transitioned from Proof of Work to Proof of Stake in September 2022 ('The Merge'), reducing energy consumption by ~99.95%.
  • EVM (Ethereum Virtual Machine) The runtime environment that executes smart contracts on Ethereum and all EVM-compatible chains. The EVM defines the instruction set and execution model for Ethereum smart contracts written in Solidity or Vyper. 'EVM-compatible' chains (Arbitrum, Optimism, Base, BNB Chain, Polygon, Avalanche, Sonic) can run unmodified Ethereum smart contracts, enabling protocol deployment across multiple chains without rewriting code.