Home / Crypto Terms / Layer 2

Layer 2

Layer 2 (L2) refers to a category of scaling solutions built on top of existing blockchain networks (known as Layer 1 or L1) that process transactions off the main chain while still inheriting and using the security guarantees of the underlying base layer. Layer 2 solutions are designed to address the widely-discussed blockchain trilemma – the challenge of simultaneously achieving decentralization, security, and scalability.

The core principle of Layer 2 is simple: move computation and data off the congested main chain, perform it more efficiently elsewhere, and then settle the results back on Layer 1. This approach allows blockchains like Ethereum to process far more transactions per second at a fraction of the cost, while aiming to preserve the censorship resistance and finality guarantees of the base layer.

The Layer 2 ecosystem on Ethereum has grown into a major part of the network’s overall activity, with leading solutions like Arbitrum, Optimism, Base, and various ZK rollups processing large volumes of transactions daily and collectively securing tens of billions of dollars in value at various points. Layer 2 has become the dominant strategy for scaling Ethereum, consistent with the “rollup-centric roadmap” that Vitalik Buterin and Ethereum core researchers have championed since around 2020.

Origin & History

2015-2017: The concept of Layer 2 scaling emerged alongside early Bitcoin payment channel proposals. Joseph Poon and Thaddeus Dryja published the Lightning Network whitepaper in January 2016, proposing a network of payment channels to scale Bitcoin transactions. Separately, Vitalik Buterin and Joseph Poon published the Plasma whitepaper in August 2017, proposing a framework for Ethereum-based child chains that would periodically commit state back to the Ethereum mainnet.

2018: The first widely-used Lightning Network implementations (Lightning Labs’ lnd, ACINQ’s eclair) reached beta and were declared ready for mainnet use around March, following isolated earlier experimental payments in late 2017/early 2018. Multiple teams, including OmiseGO and Matic (later rebranded Polygon), built Plasma implementations, though the technology faced meaningful data availability and user-experience challenges that limited its practical adoption.

2019-2020: Optimistic rollups emerged as a more practical alternative to Plasma for general-purpose smart contract scaling. Plasma Group (which would become Optimism) and Offchain Labs (Arbitrum) developed rollup architectures that post compressed transaction data on Ethereum L1 rather than relying solely on Plasma’s exit mechanisms.

2020: Zero-knowledge (ZK) rollups gained momentum. Matter Labs launched an early version of zkSync, StarkWare launched StarkEx, and Loopring deployed a ZK rollup for decentralized exchange trading on Ethereum mainnet.

August 2021: Arbitrum One launched on Ethereum mainnet as one of the first production-ready general-purpose optimistic rollups.

August 2023: Coinbase launched Base, an optimistic rollup built on the OP Stack, bringing Layer 2 technology to a large base of mainstream retail users through Coinbase’s existing app and user base.

March 2024: Ethereum’s Dencun upgrade introduced EIP-4844 (“proto-danksharding”), which created blob transactions that substantially reduced data-posting costs for Layer 2 rollups.

2024-2026: The Layer 2 market matured and diversified significantly, with Arbitrum, Optimism, Base, zkSync Era, Starknet, Linea, Scroll, and others competing for users and liquidity. Base in particular grew rapidly, becoming one of the largest L2s by several activity metrics and a close rival to Arbitrum’s long-standing lead in total value secured.

In Simple Terms

The Highway Analogy: Think of Layer 1 (Ethereum) as a busy single-lane highway. Layer 2 solutions are like adding express lanes and overpasses – traffic still ultimately reaches the same destination, but it flows much faster and with less congestion because it’s distributed across multiple paths.

The Post Office: Imagine a post office (L1) that processes letters one by one. Layer 2 is like a sorting facility that bundles thousands of letters into a single large package, then sends that package to the post office. The post office only needs to handle one package instead of thousands of individual letters.

The Court System: You don’t go to the Supreme Court for every dispute – most are resolved in lower courts. Similarly, Layer 2 handles everyday transactions (the lower court), while Layer 1 (the Supreme Court) provides the ultimate authority for dispute resolution and final settlement.

A Tab at a Bar: Instead of paying the bartender for each individual drink, you open a tab and settle at the end of the night. Layer 2 works similarly – it batches multiple transactions and settles the final result on Layer 1, reducing the number of expensive on-chain operations.

Important: Not all Layer 2 solutions work the same way. Optimistic rollups, ZK rollups, state channels, and validiums each have different trade-offs in terms of security, speed, cost, and decentralization. Understanding these differences matters when choosing the right L2 for a specific use case.

Key Technical Features

Optimistic Rollups

  • Execute transactions off-chain and post compressed transaction data to Ethereum L1
  • Assume transactions are valid by default (hence “optimistic”) – anyone can challenge a transaction within a roughly 7-day dispute period by submitting a fraud proof
  • Leading implementations: Arbitrum One, Optimism, Base
  • Trade-off: a roughly 7-day withdrawal period for native L1 withdrawals (mitigated by third-party bridges offering faster withdrawals for a fee)

ZK (Zero-Knowledge) Rollups

  • Execute transactions off-chain and generate a cryptographic validity proof (ZK-SNARK or ZK-STARK) that mathematically proves all transactions are correct
  • No challenge period needed – the proof itself demonstrates correctness, enabling faster finality
  • Leading implementations: zkSync Era, Starknet, Scroll, Linea, Polygon zkEVM
  • Trade-off: proof generation is computationally intensive; achieving full EVM equivalence has historically been more challenging than for optimistic rollups, though this gap has narrowed over time

State Channels

  • Two or more parties open a channel, conduct multiple transactions off-chain, and settle the final state on-chain
  • Lightning Network (Bitcoin) and Raiden Network (Ethereum) are the primary examples
  • Best for: repeated interactions between the same parties (payments, gaming)
  • Trade-off: requires parties to be online (or use a watchtower); not well suited to general-purpose smart contract interactions

How Layer 2 Settlement Works

  • Transaction Submission: Users submit transactions to the Layer 2 sequencer (the entity that orders and processes L2 transactions)
  • Off-Chain Execution: The sequencer executes transactions and updates the L2 state
  • Data Posting: Compressed transaction data (or state differences) is posted to Layer 1 as calldata or blob data
  • Proof/Verification: For optimistic rollups, a fraud proof window opens; for ZK rollups, a validity proof is submitted and verified on-chain
  • Finality: Once verified on L1, the L2 transactions inherit Ethereum’s security and finality guarantees

EIP-4844 (Proto-Danksharding)

  • Introduced “blob-carrying transactions” – a new data type specifically designed for L2 rollup data
  • Blobs are stored temporarily (roughly 18 days) rather than permanently, substantially reducing costs relative to permanent calldata storage
  • Reduced typical L2 transaction fees considerably across major rollups upon deployment in March 2024, though the exact percentage varies by rollup and by how you measure it
  • Represents an intermediate step toward full danksharding, which would further increase blob capacity

Advantages & Disadvantages

AdvantagesDisadvantages
Substantial Scalability – L2s can process far more transactions per second than Ethereum L1’s base-layer throughputCentralized Sequencers – Most L2s currently rely on a single, centralized sequencer to order transactions
Dramatically Lower Fees – Transactions typically cost a small fraction of a cent to a few cents on L2 versus potentially much more on L1 during congestionFragmented Liquidity – Assets and liquidity are split across dozens of L2 networks, which can reduce capital efficiency
Inherited Security – Transactions ultimately settle on L1, aiming to inherit its decentralization and security guaranteesBridge Risks – Moving assets between L1 and L2 (or between L2s) involves bridge contracts that have historically been exploited
EVM Compatibility – Most L2s support existing Ethereum smart contracts with minimal or no modificationsWithdrawal Delays – Optimistic rollups require a roughly 7-day challenge period for native L1 withdrawals
User Experience – Fast confirmations on many L2s support applications requiring near-real-time interactionsComplexity – Users must understand which L2 they’re on, manage bridging, and handle multiple networks
Developer Ecosystem – Existing Ethereum tooling (Hardhat, Foundry, ethers.js) works on most L2s with minimal changesEmerging Technology – ZK rollups in particular are still maturing; bugs and vulnerabilities in novel cryptographic systems remain possible

Risk Management

Sequencer Risk

  • Most L2s currently operate with a single centralized sequencer, creating a point of failure for liveness and censorship resistance
  • Sequencer downtime has occurred on multiple major L2s at various points
  • Decentralized sequencer designs are under active development across the ecosystem but are not yet the norm on major L2s

Bridge Security

  • Cross-chain bridges have historically been among the most frequently exploited components in DeFi, with billions of dollars lost cumulatively across incidents including Ronin, Wormhole, and Nomad
  • Use canonical (official) bridge contracts where possible, as they generally inherit L2 security guarantees more directly
  • Third-party bridges can offer speed advantages but introduce additional smart contract risk

Smart Contract Risk

  • L2 rollup contracts on Ethereum L1 are high-value targets; bugs could theoretically allow theft of bridged assets
  • Many L2s maintain upgrade keys controlled by multisig wallets, meaning a compromised multisig could in principle modify rollup contract behavior
  • Check L2Beat.com for detailed, regularly updated security assessments of each L2, including upgrade key configurations and risk ratings

Data Availability Risk

  • Validiums and some L2 variants post data to external systems rather than Ethereum L1, introducing data availability risk
  • If data becomes unavailable, users may have difficulty proving ownership of their assets and exiting the L2
  • Full rollups (posting data to L1) reduce this risk but generally at higher cost

Cultural Relevance

Layer 2 has fundamentally reshaped the Ethereum community’s vision and culture. The “rollup-centric roadmap,” associated with Vitalik Buterin and Ethereum core researchers from around 2020 onward, marked a philosophical shift: instead of trying to scale the base layer alone, Ethereum would serve primarily as a secure settlement layer while L2s handle most execution.

Key figures and perspectives:

  • Vitalik Buterin – A leading voice behind the rollup-centric roadmap; has consistently advocated for L2 scaling as complementary to, rather than a substitute for, base-layer security
  • Steven Goldfeder – Offchain Labs co-founder, whose team built Arbitrum, one of the most-used L2s by TVL and transaction volume
  • Karl Floersch – An Optimism co-founder associated with the protocol’s retroactive public goods funding (RetroPGF) initiatives
  • Alex Gluchowski – Matter Labs CEO, a prominent advocate for ZK rollup technology as a long-term scaling approach for Ethereum

Community tensions:

  • L2 vs. Alt-L1 debate: Ethereum-aligned voices often argue L2s reduce the need for alternative L1s (Solana, Avalanche, and others), while critics argue that L2 fragmentation undermines some of Ethereum’s own network effects
  • Sequencer centralization concerns: The community actively debates whether current L2s are sufficiently decentralized “rollups” given their centralized sequencers and upgrade-key arrangements, versus functioning closer to trusted sidechains in practice

Real-World Examples

1. Arbitrum’s Rise Among Ethereum L2s

Scenario: Offchain Labs launched Arbitrum One in August 2021 as an optimistic rollup on Ethereum.

Implementation: Arbitrum offered strong EVM compatibility, allowing existing Ethereum dApps to deploy with minimal changes. DeFi protocols like GMX, Radiant, and Camelot launched natively on Arbitrum, while major protocols like Uniswap and Aave deployed L2 versions there as well.

Outcome: Arbitrum has consistently ranked among the top L2s by total value locked and became one of the most active networks by daily transaction count. The March 2023 ARB governance token airdrop distributed well over a billion dollars in value to early users at the time, driving a further wave of adoption and activity.

2. Base and Mainstream Adoption

Scenario: Coinbase launched Base, an OP Stack rollup, in August 2023 to bring L2 technology to a broader, less crypto-native user base.

Implementation: Base leveraged Coinbase’s large existing user base and integrated L2 onboarding directly into the Coinbase app and wallet. Transaction fees on Base dropped further after EIP-4844’s activation in March 2024.

Outcome: Base became one of the fastest-growing L2s, reaching multiple billions of dollars in TVL within roughly a year of launch and continuing to grow into 2025-2026, at times rivaling Arbitrum on several activity metrics. Campaigns like “Onchain Summer” helped drive consumer applications – including social platforms, meme coins, and NFT minting – onto L2 infrastructure at meaningful scale for the first time.

3. EIP-4844 Fee Reduction

Scenario: Ethereum’s Dencun upgrade went live on March 13, 2024, introducing blob transactions for L2 data.

Implementation: Major L2s transitioned to posting rollup data as blobs instead of calldata following the upgrade. The new blob fee market started at low prices given initial low demand relative to blob capacity.

Outcome: Transaction fees across L2s dropped substantially and quickly – commonly cited estimates range from roughly 80% to over 95% depending on the specific rollup and time window measured. This made L2s considerably more cost-competitive for everyday use, expanding the range of viable on-chain applications, though exact percentage figures vary enough by source that they shouldn’t be treated as a single precise, universal number.

Comparison Table

FeatureOptimistic RollupsZK RollupsState ChannelsSidechainsValidiums
Security ModelFraud proofs (roughly 7-day window)Validity proofs (cryptographic)On-chain dispute resolutionIndependent consensusValidity proofs + off-chain data
Withdrawal Time~7 days (native)Minutes to hours (proof generation and verification time)Instant (if counterparties are cooperative)MinutesMinutes to hours
EVM CompatibilityStrong (often near bytecode-level equivalence)Partial to strong, varies by implementationLimitedFullPartial to strong
Data AvailabilityOn Ethereum L1On Ethereum L1Between parties onlyOn the sidechain itselfOff-chain (external DA layer)
ExamplesArbitrum, Optimism, BasezkSync, Starknet, ScrollLightning Network, RaidenPolygon PoSStarkEx (in validium mode)
MaturityProduction-ready, widely usedIncreasingly production-readyProduction (mainly for payments)Production-readyProduction (more limited use cases)

Related Terms

  • Layer 1 (L1) – The base blockchain network (Ethereum, Bitcoin, Solana) that provides the security and finality guarantees inherited by Layer 2 solutions.
  • Rollup – The dominant L2 technology approach that bundles transactions and posts compressed data or proofs to Layer 1.
  • Zero-Knowledge Proof – A cryptographic method allowing one party to prove a statement is true without revealing the underlying data, used by ZK rollups.
  • Sequencer – The entity responsible for ordering and processing transactions on a Layer 2 network.
  • EIP-4844 – The Ethereum upgrade that introduced blob transactions to reduce Layer 2 data costs.
  • Bridge – Infrastructure allowing asset and data transfer between Layer 1 and Layer 2 networks (or between different L2s).
  • Data Availability – The guarantee that transaction data is accessible to all network participants, critical for L2 security.
  • Fraud Proof – A mechanism used by optimistic rollups to challenge and revert invalid state transitions.
  • Total Value Locked (TVL) – The aggregate value of assets deposited on L2 networks, tracked by sites like L2Beat and DeFiLlama.

FAQ

Q: What is the difference between Layer 1 and Layer 2? A: Layer 1 is the base blockchain network (like Ethereum or Bitcoin) that provides consensus, security, and finality. Layer 2 is a secondary network built on top of L1 that processes transactions more efficiently off-chain while ultimately settling results back on the base layer. L1 is the security foundation; L2 is the scalability layer built on top of it.

Q: Which Layer 2 should I use? A: It depends on your needs. Arbitrum and Base generally offer strong EVM compatibility and large ecosystems for DeFi. Optimism pioneered the OP Stack used by Base and other chains. zkSync and Starknet offer different security properties through validity proofs and have grown their ecosystems considerably, though historically started from a smaller base than the leading optimistic rollups. For most users, Arbitrum or Base tend to offer a solid balance of cost, speed, and ecosystem maturity, though this landscape shifts as the market evolves.

Q: Are Layer 2 solutions safe? A: Major L2s like Arbitrum, Optimism, and Base have processed large volumes of transactions and value without major security incidents in their core rollup contracts to date. However, they do involve trade-offs: centralized sequencers, upgrade keys controlled by multisig wallets, and bridge contracts that could theoretically be exploited. L2Beat.com provides detailed, regularly updated risk assessments for each L2.

Q: How much cheaper are Layer 2 transactions? A: Since EIP-4844, typical L2 transactions often cost a small fraction of a cent to a few cents, compared to potentially much more on Ethereum L1 during congestion. Simple transfers can cost fractions of a cent, and even more complex DeFi operations are usually well under a dollar on major L2s. Exact figures fluctuate with network demand.

Q: Will Layer 2 replace Layer 1? A: No – Layer 2 is generally understood to complement Layer 1 rather than replace it. Ethereum’s roadmap envisions L1 as a secure, decentralized settlement layer while L2s handle a large share of everyday execution. Users interact primarily with L2s for daily transactions, while L1 aims to keep the overall system secure and censorship-resistant.

Q: What happens if a Layer 2 goes offline? A: For rollups that post all their data to Ethereum (Arbitrum, Optimism, zkSync, and similar), users can generally still exit to Ethereum L1 even if the L2’s sequencer goes offline, because the necessary transaction data has already been posted on-chain. This “escape hatch” mechanism is considered a core security property of rollups, though the exact process can be complex and may take meaningful time to execute in practice.

Sources

Check your own numbers

The Free UEEx Calculator returns liquidation price, margin usage and fees for any position size

UEEx Weekly Digest

Market analysis and security alerts, read by 10,000 traders