Skip to content
Hexncoin
Track 2: Layer 1, Layer 2 & RollupsLesson 3 of 5·6 min

What Is a Layer 2?

How L2s inherit Layer 1 security while processing transactions elsewhere.

01

Borrowing a Layer 1's security

A Layer 2 is a protocol built on top of a Layer 1 that does most of its transaction processing elsewhere, then periodically checks in with the base layer. It doesn't need its own army of validators from scratch - it leans on the L1's existing security instead.

That's the key difference from just building a brand-new, separate blockchain: a well-designed Layer 2 is only as trustworthy as its connection back to the L1 lets it be.

02

The basic recipe

A component called a sequencer collects transactions and orders them, much faster and cheaper than the base layer could on its own. Periodically, a summary of what happened - compressed data, and often a proof - gets posted back to the Layer 1.

Once that summary is on the L1, it inherits the L1's guarantees: the data is public, and the L1's own security now backs up the L2's history. Different Layer 2 designs differ mainly in how they prove that summary is honest - the subject of the next lesson.

03

Why fees drop

Posting to a Layer 1 costs money - it's competing for the same limited block space as everyone else. A Layer 2 batches hundreds or thousands of transactions into one L1 posting, so that cost gets split across everyone in the batch instead of paid individually.

That's the practical payoff for users: transactions that might cost dollars directly on the L1 can cost fractions of a cent on a well-used Layer 2.

Remember

You're still ultimately paying for L1 block space - just your tiny slice of one shared posting instead of a whole transaction's worth.

Concept map · schematic

Execution and Ethereum settlement

A conceptual rollup lifecycle; actual guarantees vary by network.

  1. 01

    Layer 2

    Orders and executes transactions on its own chain

  2. 02

    Publish data

    Posts commitments and data through L1 transactions or blobs

  3. 03

    Settlement

    Applies proof/challenge rules to secure resulting state

Important: A sequencer confirmation is not identical to final settlement on Ethereum.

Self-check

Check your understanding

Choose an answer for each question, then check the results and explanations.

3 questions
Question 1

Question 1 / 3

What makes a Layer 2 different from an entirely separate, standalone blockchain?

Question 2

Question 2 / 3

What does a Layer 2's sequencer do?

Question 3

Question 3 / 3

Why are Layer 2 transaction fees typically much lower than paying the Layer 1 directly?

Primary references

Documentation and standards

References added

Official technical references for further verification. A source link is not a guarantee that every earlier editorial sentence has been reverified; provider specifications may also change over time.

The curriculum predates this reference index. These sources are offered to check technical details; no original publication date has been inferred.

Apply what you learned

Related practical guides

Continue learning