Layer 2 Scaling Technology

Bundle. Compress.
Conquer L2.

Rollups take thousands of Ethereum transactions, compress them into a single proof, and post it to L1. Explore how Layer 2 scaling works — from execution to settlement.

4,821 Transactions/sec
~$0.003 Avg L2 Fee
100x Cost Reduction
Scroll to compress

What is a Rollup?

A rollup is a Layer 2 scaling solution that executes transactions off-chain, then bundles and posts compressed data back to Ethereum (L1), inheriting its security.

Off-Chain Execution

Transactions execute on the L2 network, not on Ethereum mainnet. This removes computation from the expensive L1 environment.

execute(txBatch) → stateRoot

Batch Compression

Hundreds of transactions are compressed into calldata and posted to L1. Data availability is maintained while costs are amortized across the batch.

compress(txs[]) → calldata

L1 Settlement

A state root commitment is posted to Ethereum. The L1 contract verifies validity — either via fraud proofs or zero-knowledge proofs.

settle(stateRoot, proof)

How Rollups Work

Follow the lifecycle of a transaction as it flows from user submission to final L1 settlement.

1

User Submits Tx

A user signs and submits a transaction to the L2 sequencer via RPC.

0x1a2b...c3d4 → swap(ETH, USDC, 1.5)
2

Sequencer Orders

The sequencer collects transactions, orders them, and executes them against current L2 state.

mempool[2,847 txs] → ordered
3

Batch Compression

Transactions are compressed and bundled into a batch. Calldata size is minimized using delta encoding and zero-byte optimization.

2,847 txs → 4.2KB calldata
4

Proof Generation

A validity proof (ZK) or a challenge window opens (Optimistic). The state transition is cryptographically committed.

prove(prevRoot, txs) → newRoot
5

L1 Finality

The batch and proof are posted to Ethereum. The L1 rollup contract verifies and stores the new state root. Transaction is finalized.

ethereum.finalizeBlock(#4829112)
1 / 5

Rollup Variants

Two major paradigms, each with tradeoffs in proof speed, trust assumptions, and EVM compatibility.

OP

Optimistic Rollup

Assume valid, challenge if not

How it works

Transactions are posted to L1 and assumed valid. Any user can submit a fraud proof during the challenge window (7 days) to dispute an invalid state transition.

Finality ~7 days
Proof Type Fraud Proof
EVM Compat Full
TPS 2,000+
Examples: Optimism Arbitrum Base
ZK

ZK Rollup

Prove validity cryptographically

How it works

A zero-knowledge proof is generated for each batch, cryptographically proving all transactions are valid without revealing private data. L1 verifies instantly.

Finality Minutes
Proof Type ZK Proof
EVM Compat Partial
TPS 10,000+
Examples: zkSync StarkNet Polygon zkEVM

Network Pulse

Real-time metrics from the rollup ecosystem. Figures update to reflect the expanding L2 landscape.

Total Value Locked
$38.4B
+12.4% this month
Daily Transactions
4.2M
+8.7% vs L1
Active Rollups
47
+3 this quarter
Avg Settlement Time
2.1s
L2 confirmation
Gas Saved vs L1
99.1%
Across all rollups
Recent Batch Submissions
Arbitrum 0x3f7a...9c21 1,247 txs 2s ago
zkSync 0xa1b8...7e34 892 txs 7s ago
Base 0x55cc...2f18 3,041 txs 12s ago
Optimism 0xd9e4...8b72 1,589 txs 19s ago

Explore the Stack

Investigate rollup components. Each layer contributes to security, speed, and decentralization.

Live

Sequencer

Orders and executes transactions. Central point of liveness but not safety — even a malicious sequencer cannot steal funds.

Centralized High TPS
Core

Prover

Generates cryptographic proofs of state transitions. ZK provers use SNARKs/STARKs; optimistic systems rely on verifiers to spot fraud.

ZK / Fraud Trustless
Critical

Data Availability

Transaction data posted to Ethereum (calldata / blobs via EIP-4844). DA ensures anyone can reconstruct L2 state without trusting the sequencer.

EIP-4844 Blobs
Gateway

Bridge Contract

The canonical L1 contract that locks assets for L2 deposits and releases them on verified withdrawals. The trust anchor of the entire system.

L1 Contract Asset Lock
Active

Proto-Danksharding

EIP-4844 introduced blob transactions — cheap, temporary data storage for rollup calldata. Reduced L2 fees by up to 10x at launch.

EIP-4844 ~10x cheaper
Soon

Full Danksharding

The Ethereum roadmap targets 64+ blob columns, enabling rollups to scale to millions of TPS while maintaining cryptographic security guarantees.

Roadmap Millions TPS

Build on Layer 2

Rollups are the foundation of Ethereum's scalability roadmap. Deploy on existing rollup infrastructure today and inherit L1 security at a fraction of the cost.

> rollup.deploy()
> bridge.deposit(1 ETH)
> tx.cost ≈ $0.003