Part 1 · Chapter 4

Layer 1 vs Layer 2

At a Glance

Layer 1s are base blockchains like Bitcoin and Ethereum, while Layer 2s build on top to add speed and reduce costs. You'll learn why both layers matter and how they interact.

ScalabilitySecurityTrade-offs

Who Is This For?

  • Beginners who feel fees are high on main chains
  • Users deciding whether to transact on Ethereum L1 or L2s like Arbitrum or Optimism

Learning Objectives

  1. 01Differentiate L1 security from L2 scalability roles
  2. 02Describe how transactions settle back to the base chain
  3. 03Choose when to stay on L1 versus move to L2
Section 1

What Defines a Layer 1

Layer 1 is the foundation--the base blockchain that provides security, consensus, and data availability. Everything else builds on top of it.

🏗️ The Foundation Layer

Applications (DeFi, NFTs, DAOs)
Layer 2s (Rollups, Sidechains)
Layer 1
Consensus · Security · Data Availability
Bitcoin
Consensus: Proof of Work
Speed: ~7 TPS
Digital gold, maximum security
Ξ
Ethereum
Consensus: Proof of Stake
Speed: ~15-30 TPS
Smart contract platform
Solana
Consensus: PoS + PoH
Speed: ~4,000 TPS
Monolithic high-speed design
L1 Advantages
  • Highest security and decentralization
  • Deepest liquidity and most integrations
  • True finality--no additional trust assumptions
L1 Limitations
  • Higher fees during network congestion
  • Limited throughput (transactions per second)
  • Slower block times compared to L2s
Section 2

How Layer 2s Work

Layer 2s process transactions off the main chain, then post compressed proofs back to L1. This dramatically increases throughput while inheriting L1 security.

🔄 The Rollup Process

1. Collect
Bundle 1000s of transactions
2. Execute
Process off-chain
3. Prove
Generate validity proof
4. Settle
Post proof to L1
🟡 Optimistic Rollups

Assume transactions are valid by default. Include a challenge period where anyone can dispute fraud.

Examples: Arbitrum, Optimism, Base
Withdrawals: ~7 day challenge period
Security: Fraud proofs
🟣 ZK Rollups

Generate cryptographic proofs (zero-knowledge) that transactions are valid. No challenge period needed.

Examples: zkSync, StarkNet, Scroll
Withdrawals: Minutes to hours
Security: Validity proofs

💰 Cost Comparison Calculator

See how much you'd save on L2. Select a transaction type:

Ethereum L1
$15.50
Time: ~15 sec
Layer 2 (Arbitrum/Optimism)
$0.12
Time: ~2 sec

💡 You'd save $15.38 (99% less) on L2

🌉 Bridge Simulator

See how bridging works in each direction. Notice the different withdrawal times!

Section 3

When to Use Each

The right layer depends on your use case. Let's build intuition with real scenarios.

📊 L1 vs L2 Comparison

AttributeLayer 1Layer 2
SecurityMaximum (consensus layer) Inherits from L1
Transaction Cost$5-50+ $0.01-0.50
Speed12-15 seconds 1-2 seconds
LiquidityHighest Growing
DecentralizationMost decentralized Varies by design
Throughput~15-30 TPS ~2,000+ TPS

🎯 Which Layer? (Click to reveal)

🖼️
You want to buy a $50,000 NFT from a blue-chip collection
📈
You're making 20 small trades per day on a DEX
🎮
You're playing a blockchain game that requires many microtransactions
🥩
You want to stake ETH for long-term holding
🧪
You're testing a new DeFi protocol with a small amount
✅ Use L1 When:
  • Making large, high-value transfers
  • Minting valuable NFTs where provenance matters
  • Maximum security and finality are critical
  • Interacting with L1-only protocols
✅ Use L2 When:
  • Making frequent, smaller transactions
  • Trading actively on DEXs
  • Playing blockchain games
  • Experimenting with new protocols
Watch Out

Common Mistakes & Gotchas

These misconceptions about L1s and L2s can lead to lost funds or unexpected delays.

🔗
Sidechains and rollups are the same thing
Sidechains have their own consensus and security. Rollups inherit L1 security by posting proofs to Ethereum.
🌉
Any bridge link I find online is safe
Always verify bridge contract addresses through official sources. Fake bridge sites are a common phishing attack.
L2 withdrawals are instant like deposits
Optimistic rollups have a 7-day challenge period for withdrawals. ZK rollups are faster but still not instant.
🛡️
L2s are just as secure as L1 in every way
L2s inherit L1 security for settlement, but have additional risks: sequencer centralization, bridge bugs, upgradeability.

⚠️ Pro tip: Before bridging, always verify bridge addresses through official documentation. Bookmark official bridge URLs and never use links from Discord DMs or Twitter ads.

Test Yourself

Knowledge Check

Let's see how well you understand Layer 1 vs Layer 2. Answer all 5 questions below.

1

What core role does a Layer 1 chain provide?

2

How do rollups reduce fees?

3

Why do some L2 withdrawals take several days?

4

When should you prefer using Layer 1 over Layer 2?

5

What is the key difference between a sidechain and a rollup?

Next Steps

Continue learning: “Rollups and Scalability” -- deep dive into optimistic vs ZK rollups and their tradeoffs
Hands-on practice: Bridge a small test amount to an L2 testnet (Arbitrum Sepolia or Optimism Sepolia) to experience the flow