Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124

A layer 2 is a network built on top of a base blockchain to make it faster and cheaper. Instead of every transaction competing for space on the main chain, activity moves off-chain, gets bundled, and settles back in one batch. You keep most of the base chain’s security, and fees fall because thousands of users share one settlement.
Scaling answers a simple problem: a popular blockchain runs out of room. Every transaction competes for the same limited space in the next block, so when demand rises, fees rise and confirmations slow down. Every way out trades something away.
The trilemma. A blockchain wants three things at once: decentralization, security, and scale. Improving one usually costs one of the others. Keeping the base layer modest means ordinary computers can still verify it — that is decentralization and security, bought with low throughput: the base layer processes few transactions per second, and busy weeks reprice that space hard.
Layer 1 scaling. The base layer itself can change: bigger blocks, faster block times, a different consensus mechanism. These help, but they all make the chain heavier and harder to verify, and they have hard limits.
Layer 2 scaling. Instead of changing the base layer, build on top of it. A layer 2 executes transactions elsewhere, then posts compressed data or a proof back to the base chain. The base layer stays the source of truth and the final court of appeal, while the layer 2 does the volume. That is the subject of this hub.
The modular split. Once execution moves off the base layer, the chain’s jobs separate: one layer executes, another stores data, another settles disputes. That split is the modular stack, and it is how modern scaling is built.
| Term | In one line |
|---|---|
| Layer 1 (L1) | The base blockchain itself, with its own consensus, security and final settlement. |
| Layer 2 (L2) | A network built on top of an L1 that executes transactions off-chain and settles back on it. |
| Rollup | A layer 2 that bundles many transactions off-chain and posts compressed data or a proof to the L1. |
| Optimistic rollup | A rollup that assumes batches are valid unless someone proves fraud during a challenge window. |
| ZK rollup | A rollup that attaches a cryptographic validity proof to each batch, so no challenge window is needed. |
| Sequencer | The operator that orders transactions on a rollup and submits them to the base layer. |
| Data availability | The guarantee that the data behind a batch is published, so anyone can check or challenge it. |
| Blob | Temporary data attached to Ethereum blocks, used by rollups to post their batches cheaply. |
| Bridge | A contract that moves assets between the base layer and a layer 2 or sidechain. |
| Sidechain | An independent blockchain connected to a main chain by a bridge, with its own consensus. |
| Finality | The point after which a transaction can no longer be reversed or reordered. |
| Fraud proof | Evidence that a rollup batch was computed wrongly, submitted during the challenge window. |
Follow one transaction from your wallet to final settlement and the whole scaling stack shows up.
You swap tokens on a rollup. Your transaction goes to the sequencer, which orders it with thousands of others and executes them off-chain — no base-layer block space used yet. The sequencer compresses the batch, posts it to the base layer as blob data, and the rollup’s contract records the new state. On an optimistic rollup, the batch now waits out a challenge period: anyone who spots a bad result can submit a fraud proof and get it reverted. On a ZK rollup, a validity proof travels with the batch, the base-layer contract verifies the maths, and the result is final almost immediately. Your tokens arrived through a bridge, and going back means bridging out again — waiting out the challenge period on an optimistic rollup, or minutes on a ZK one.
Nothing in that chain is free. The sequencer, the blob market, the bridge and the proof system are each a place where the design can fail, and the sections below take them one at a time.
A rollup is the dominant layer-2 design on Ethereum, and the idea is simple: do the work off-chain, prove it on-chain. The rollup executes hundreds or thousands of transactions, compresses the result, and posts it to the base layer as one batch. The base layer does not re-execute anything — it checks the data or the proof.
The two families differ in how they convince the base layer the batch is correct. Optimistic rollups assume it is valid by default and leave a challenge window — about a week on Ethereum — for anyone to submit a fraud proof. ZK rollups attach a validity proof to every batch, and the base-layer contract verifies the maths before accepting it. The trade is finality against cost: optimistic batches are cheap to produce and slow to withdraw; ZK batches settle fast and cost more to prove.
Every rollup needs someone to decide the order transactions execute in. That someone is the sequencer: it takes transactions, orders them, executes them, and submits the batch to the base layer. Ordering matters — it decides who gets in first and whose trade executes at which price.
Most rollups today run a single sequencer operated by one team. That is fast and simple, and it is also a central point of failure: if the sequencer goes offline, the network stalls; if it misbehaves, it can reorder transactions for its own benefit. Decentralizing the sequencer — or sharing one sequencer set across several rollups — is the fix the industry is working toward.
A rollup batch is only as trustworthy as its data. If the data behind a batch is not published, nobody can check whether it was computed correctly, and nobody can reconstruct the rollup’s state if its operator disappears. That requirement is why rollups post data to the base layer at all, and it is the main cost they pay.
For years rollups posted that data as calldata, which every node processes and stores forever, and which is priced accordingly. The Dencun upgrade in March 2024 changed the deal: rollups can now post their data as blobs — temporary data attached to blocks, deleted after a short period, priced in a separate market. Blobs made rollup transactions far cheaper, and later upgrades raised how many blobs each block can carry.
Nothing on a layer 2 starts there. Your assets arrive from the base layer through a bridge: you lock tokens in a contract on the base layer, and the rollup mints a matching amount for you to use. Going back reverses the process. The bridge is the doorway, and it is also the most attacked part of the whole system.
Bridges fail in two ways. The contract itself can be exploited, and bridges have been behind some of the largest thefts in crypto. Or the design can strand you: an optimistic rollup’s official bridge makes you wait out the challenge period, and a congested or broken bridge can leave assets stuck on the wrong layer. Faster bridges pay someone else to front the funds and take the wait instead — but that speed is a service you pay for, not a property of the chain.
A traditional blockchain does four jobs at once: it executes transactions, orders them, stores the data, and settles disputes. The modular idea splits those jobs across specialized layers: one executes, another holds data, another settles. A rollup is the execution layer; the base chain is the settlement and data layer.
The base layer keeps one job above all: security. Validators are paid to secure the chain, and what they are paid — the security budget — is what the whole stack inherits. A layer 2 is only as secure as the base layer it posts to, which is why the economics of the base layer still matter even when almost nobody transacts on it directly.
Layer-2 risk is a stack, and you take all of it at once.
Sequencer risk. A single sequencer can go offline and stall the network, censor transactions, or reorder them for its own profit. The escape hatch — forcing your transaction through the base layer — exists, but it is slow, expensive, and rarely tested until it is needed.
Bridge risk. Bridges hold the locked assets backing everything on the other side, and they have been the target of the largest hacks in crypto. A bridge exploit does not just steal funds — it breaks the link between the layer 2 and the base layer.
Upgrade and governance risk. Rollup contracts are usually upgradeable, and the keys that can change them are often held by a small team. Check who holds the keys and whether users get time to exit first.
Data availability risk. If a rollup stops publishing its data, users cannot prove what they own or reconstruct the chain. Blobs are deleted after a short period by design, so the long-term record depends on someone keeping a copy.
Withdrawal and finality risk. Optimistic rollups make you wait out the challenge period — about a week — before funds are final on the base layer. Fast bridges will front the money, but they charge for it, and in a crisis the queue is what it is.
Fragmentation risk. Funds on one layer 2 are not automatically usable on another. Moving between rollups costs time and fees, and liquidity splits across networks instead of pooling in one place.
Your own mistakes. Wrong network, wrong bridge, sending to a contract that cannot return funds, approving unlimited spending — these are the most common losses of all, and no layer 2 can reverse them.
A layer 2 blockchain moves transaction execution off a base blockchain like Ethereum or Bitcoin, while still using that base chain to validate and secure the transactions. The base layer stores the layer 2’s state and settles disputes, so the layer 2 gets the base layer’s security at a fraction of the cost.
A Layer 1 is a base blockchain with its own consensus and final settlement, such as Ethereum or Bitcoin. A Layer 2 runs on top of a Layer 1, executes transactions off the main chain, and posts data or proofs back for security. The Layer 1 does the securing; the Layer 2 does the volume.
Ethereum is a Layer 1. Networks such as Arbitrum, Optimism, Base and Starknet are Layer 2 rollups that post their data to Ethereum.
Not fully. Rollups inherit much of their security from the Layer 1 they post data to, but they add risks of their own, such as a single sequencer, upgradeable contracts and bridge bugs. Maturity varies widely, so check a network’s track record before trusting it with large amounts.
Optimistic rollups assume transactions are valid unless someone proves fraud, so withdrawals to Ethereum wait for a challenge period of roughly seven days. ZK rollups use validity proofs instead and do not need that waiting period, so their withdrawals finalize faster.
Optimistic rollups assume batches are valid by default and rely on fraud proofs: anyone can challenge a bad batch during the challenge window. ZK rollups attach a cryptographic validity proof to each batch, which the base layer verifies before accepting it. Optimistic batches are cheaper to produce; ZK batches settle faster.
No. A sidechain is an independent blockchain with its own consensus, connected to a main chain through a bridge. It does not post its state back to the base layer, so it does not inherit the base layer’s security.
Blobs are temporary data attached to Ethereum blocks, introduced by the Dencun upgrade in March 2024. Rollups post their batches as blobs instead of permanent calldata, which costs far less — rollup fees fell sharply after Dencun. Blobs are deleted after a short period, so they are for availability, not permanent storage.
On Ethereum, Arbitrum, Optimism, Base and zkSync are rollups; on Bitcoin, the Lightning Network is a layer 2 for payments, using channels that settle back to the Bitcoin chain. Each makes different trade-offs between cost, speed and security.
The main risks are a single sequencer going offline or censoring transactions, bridge exploits, upgradeable contracts controlled by a small team, data availability failures, withdrawal delays on optimistic rollups, and fragmentation — funds on one layer 2 are not automatically usable on another.
A Layer 3 is a network built on top of a Layer 2, usually for one kind of app or use, such as gaming or a specific kind of payment. It uses the Layer 2 below it for settlement, in the same way a Layer 2 uses its Layer 1. In practice, most people do not need to think about Layer 3s separately: they are a way to specialise a Layer 2, rather than a different kind of blockchain altogether.
Neither is better on its own — they do different jobs. A Layer 1 is the base network that provides security and final settlement, while a Layer 2 sits on top of it to make everyday transactions faster and cheaper. For holding or settling something important, the Layer 1 matters most; for frequent, low-cost use, a Layer 2 is usually the practical choice.
A Layer 1 crypto is the native coin of a base blockchain, not a network built on top of one. Bitcoin and Ethereum are the best-known examples, because each runs its own blockchain and secures its own transactions. A coin that runs on top of one of those blockchains, rather than running its own, is not a Layer 1.
There is no single Layer 2 protocol. Most Layer 2s today use rollups, which process transactions off the main chain and then post a summary back to the Layer 1, while others use sidechains or state channels. What they share is the basic idea: do the work off the base chain, and use the base chain to check or settle the result.
There is no single best Layer 2 for everyone. The right choice depends on what you want to do, such as which apps you use, how much you want to pay in fees, and how much you value the security of the underlying Layer 1. Compare those points for your own use, rather than looking for one network that is best at everything.