> For the complete documentation index, see [llms.txt](https://exbit-1.gitbook.io/exbit-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://exbit-1.gitbook.io/exbit-docs/jiao-cheng-zhong-xin/l2-xin-shou-ru-men-zhi-nan/shen-me-shi-l2.md).

# 什么是 L2

L2 是以太坊的**链下扩容方案**。

核心逻辑一句话：**把计算搬到链下，把结果和证明放回链上。**

以太坊主网（L1）每秒只能处理约 15 笔交易。拥堵时 Gas 费飙升，一笔简单转账可能花掉几十美元。L2 的做法是：在链下把成千上万笔交易打包，压缩后提交给以太坊。固定成本被分摊到每笔交易上，单笔费用大幅下降。

目前 L2 交易比以太坊 L1 便宜约 **5-20 倍**。在 2024 年 Dencun 升级引入 blob 存储后，费用进一步降低。

对比一下：

| 对比项   | 以太坊 L1   | L2     |
| ----- | -------- | ------ |
| 交易速度  | \~15 TPS | 数千 TPS |
| 单笔费用  | 高        | 低      |
| 安全性来源 | 以太坊共识    | 继承以太坊  |
| 资产控制  | 自己持有     | 通过桥接进入 |
