Compare

Layer 1 vs Layer 2

A Layer 1 is a base blockchain with its own consensus. A Layer 2 processes transactions off that base chain and settles the results back to it, aiming for lower fees and higher capacity.

  • Intermediate
  • 4 min read
  • Updated
Watch in 60 seconds

Layer 1 vs Layer 2

0:53 · captioned

1/4A base chain, and a system on top

Layer 2Processes transactions, settles below
Layer 1The base blockchain
  • Layer 1: a base chain, its own consensus
  • Layer 2: executes off-chain, settles back

A base blockchain and a system built on top of it: where transactions are processed, where they settle, and where the security comes from.

0:00 / 0:53

Transcript
  1. A base chain, and a system on top
  2. A Layer 1 is a base blockchain, such as Bitcoin or Ethereum.
  3. It runs its own consensus: how its computers agree on one record.
  4. A Layer 2 is a separate system built on top of one.
  5. It processes transactions off the base chain and settles the results back to it.
  6. How a rollup uses the base chain
  7. In a rollup, a common kind of Layer 2, many transactions share one base-chain cost, so fees are usually lower.
  8. Where the security comes from
  9. A Layer 2 borrows much of its security from the base chain, and adds parts of its own that must be trusted.
  10. A common confusion
  11. A Layer 2 is not a competing blockchain. A new base chain with low fees is still a Layer 1.
  12. Lower fees do not mean lower risk. Cost and security are separate properties.
  13. The layer describes where transactions are processed and settled, not an asset's value.

Educational explainer with hypothetical data. Not financial advice.

Layer 1

A base blockchain. It runs its own consensus, keeps its own ledger and is responsible for its own security.

Layer 2

A system built on top of a Layer 1. It handles transactions away from the base chain and anchors the results to it.

Both are covered in depth on one page

Layer 1 compared with Layer 2
AspectLayer 1Layer 2
What it isA base blockchain with its own consensusA system that executes off the base chain and settles to it
Security comes fromIts own miners or validatorsLargely the Layer 1, plus assumptions of its own
Typical feesHigher when the network is busyUsually lower, since many transactions share one base-chain cost
CapacityLimited, in part to keep the network decentralisedHigher
ExamplesBitcoin, EthereumThe Lightning Network on Bitcoin; rollups on Ethereum
Getting assets onto itNative to the chainDeposited from the Layer 1 through a bridge
Additional risksThe base chain's ownBridge contracts, operators and upgrade controls

The idea in one picture

Layer 1 and Layer 2
ApplicationsExchanges, wallets, games, lending.
Layer 2Processes transactions off the main chain and posts results back to it.
Layer 1The base blockchain: final settlement and security.

A Layer 1 is a blockchain that stands on its own: Bitcoin and Ethereum are the best-known examples. A Layer 2 is a separate system built on top of one. It carries out transactions elsewhere and uses the Layer 1 as the final record. The fuller explanation is in Layer 1 & Layer 2.

In plain words

A Layer 1 is a courthouse. Everything recorded there is official, and it can only handle so many cases a day, so each one is slow and costly.

A Layer 2 is a group of people who settle their everyday dealings among themselves and file one summary with the courthouse. Far more gets done for far less. The courthouse still stands behind the result, as long as the summary is filed honestly and can be challenged.

Why Layer 2 exists

A public blockchain asks many independent computers to verify every transaction. That keeps it open and hard to tamper with, and it limits how many transactions fit in each block. When demand exceeds the space, network fees rise. Raising the limits would make the chain harder for ordinary participants to verify.

Layer 2 systems take a different route: move the activity off the base chain and keep the base chain as the anchor.

How a Layer 2 settles

How a rollup uses the base chain
  1. TransactUsers send transactions to the Layer 2.
  2. ExecuteThe Layer 2 processes them off the base chain.
  3. BatchMany transactions are compressed into one bundle.
  4. SettleThe bundle and its data, plus a proof for zero-knowledge rollups, are posted to the Layer 1.
The base chain records a summary of many transactions at once. That shared cost is the source of the lower fees.

On Ethereum the main approach is the rollup. A rollup executes transactions itself, then posts compressed data and a proof to the Layer 1. Optimistic rollups assume a batch is valid and allow a period in which it can be challenged. Zero-knowledge rollups post a cryptographic proof that the batch is valid.

On Bitcoin, the Lightning Network uses payment channels. Two parties lock funds on the base chain, exchange any number of payments between themselves, and record only the opening and closing on Bitcoin.

Sharing one base-chain costHypothetical illustration

Hypothetical numbers.

On the Layer 1, 1,000 separate transactions each pay a fee of 2.00. Total: 1,000 x 2.00 = 2,000.

On a rollup, the same 1,000 transactions are bundled. Posting the bundle to the Layer 1 costs 100 in total, or 100 / 1,000 = 0.10 per transaction. The rollup adds 0.02 each for its own processing. Fee per transaction: 0.10 + 0.02 = 0.12.

The saving comes from dividing one base-chain cost among many users. If the base chain becomes more expensive, or the bundle carries fewer transactions, the fee per transaction rises.

When the distinction matters

Where the security comes from

A Layer 1 is secured by its own consensus. A Layer 2 borrows much of its security from the base chain and adds assumptions of its own: that its contracts on the Layer 1 are correct, that the proof system works, and that data is available for anyone to check. How much is inherited differs from one design to another.

Operators and upgrades

Many rollups currently rely on a single operator, called a sequencer, to order transactions. If it stops, activity can pause, and a single operator can also delay or reorder transactions. Many also keep upgrade keys that allow a small group to change the contracts. These are forms of trust that the base chain does not require.

Moving assets across

Assets reach a Layer 2 through a bridge: they are locked in a contract on the Layer 1 and represented on the Layer 2. Withdrawing can take from minutes to about a week, depending on the design. An asset sent to the right address on the wrong network can be difficult or impossible to recover.

Common confusion

  • A Layer 2 is not a competing blockchain. New base chains that offer low fees are Layer 1s. A Layer 2 settles to another chain.
  • A sidechain is not strictly a Layer 2. A sidechain has its own consensus and its own security, connected by a bridge. The terms are often used loosely.
  • The same token exists separately on each network. A balance on a Layer 2 does not appear on the Layer 1 until it is withdrawn.

What it does NOT mean

  • Layer 2 does not mean “as secure as the Layer 1”. It inherits part of that security and adds risks from bridges, operators and smart contracts.
  • Layer 1 does not mean slow or outdated. The base layer is what everything above it depends on.
  • Lower fees do not mean lower risk. Cost and security are separate properties.
  • The layer says nothing about an asset’s value. It describes where transactions are processed and settled.

Key takeaway

A Layer 1 is a base blockchain with its own consensus and security. A Layer 2 processes transactions off that chain and settles back to it, gaining capacity and lower fees in exchange for additional components that have to be trusted.

Sources and further reading

  • Scaling (opens in a new tab), ethereum.org. Rollups execute transactions outside layer 1 and post data to layer 1, reducing gas fees for users
  • Optimistic Rollups (opens in a new tab), ethereum.org. One-week challenge period before withdrawing to Ethereum; operators can censor users by going offline
  • Mastering the Lightning Network, Andreas M. Antonopoulos, Olaoluwa Osuntokun and René Pickhardt (2021). Payment channels as a second layer on Bitcoin
  • Mastering Ethereum, Andreas M. Antonopoulos and Gavin Wood. The base-layer design that Layer 2 systems build on