> ## Documentation Index
> Fetch the complete documentation index at: https://docs.theblockchainlibrary.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Layer 2

> Layer 2 refers to secondary protocols built on top of an existing Layer 1 blockchain to improve scalability, efficiency, and speed. These solutions move the bulk of transaction processing off the main chain, while still inheriting the security and finality provided by the base La

# Layer 2

Layer 2 refers to secondary protocols built on top of an existing Layer 1 blockchain to improve scalability, efficiency, and speed. These solutions move the bulk of transaction processing off the main chain, while still inheriting the security and finality provided by the base Layer 1. By batching transactions or using alternative data availability paths, Layer 2 networks reduce congestion and transaction costs on the main ledger, facilitating wider mainstream adoption of decentralized applications.

## Definition

Layer 2 refers to secondary protocols built on top of an existing Layer 1 blockchain to improve scalability, efficiency, and speed. These solutions move the bulk of transaction processing off the main chain, while still inheriting the security and finality provided by the base Layer 1. By batching transactions or using alternative data availability paths, Layer 2 networks reduce congestion and transaction costs on the main ledger, facilitating wider mainstream adoption of decentralized applications.

## Simple explanation

Layer 2 is like an express lane built over a busy highway. Instead of everyone crawling along the main road, cars can jump onto the express lane to go much faster. Eventually, they return to the main road, having finished their journey in a fraction of the time.

## Why it matters

Layer 2 solutions are essential for scaling blockchain technology to support global demand. They allow for instant, low-cost transactions without sacrificing the security of the underlying blockchain.

## How it works

Layer 2 networks bundle multiple transactions together and process them off-chain. Periodically, they send a summarized proof of these transactions back to the Layer 1 main chain for final settlement, effectively 'anchoring' the activity while offloading the processing burden.

## Real-world example

The Lightning Network for Bitcoin or Arbitrum for Ethereum are classic examples of Layer 2 solutions that increase throughput.

## Advantages

* Significantly higher transaction speeds
* Lower transaction fees for users
* Reduces congestion on mainnet

## Limitations

* Adds complexity to the ecosystem
* Potentially higher security risk than L1
* Requires bridge trust and liquidity

## Common misconceptions

* Users often think Layer 2 is a separate blockchain. It is an auxiliary protocol that relies on the Layer 1 for security.
* Many believe Layer 2 must be just as slow as Layer 1, but they are specifically designed for high performance.

## Related knowledge

* [Layer 1](/generated/v2/glossary/layer-1) — term
* [Off-chain](/generated/v2/glossary/off-chain) — term
* [Throughput](/generated/v2/glossary/throughput) — term

***

**Canonical knowledge ID:** `glossary:layer-2`
