# Linea 链操作指南

### 🚀 关于 Linea 网络

Linea 是利用 **零知识证明 (Zero-Knowledge Proofs)** 技术的 Layer 2 汇总方案。不同于 Optimistic Rollup，Linea 通过数学证明直接保证了交易的终局性 (Finality)。作为 Consensys 产品矩阵的核心（与 MetaMask, Infura 深度绑定），其在资金安全性与开发者工具支持上处于行业顶尖水平。

SlerfTools 现已把 Linea 生态常用操作全部打通：**发币、空投、交易与钱包管理，开箱即用。**

{% hint style="success" %}
📖 本页用于在钱包中添加/切换 Linea 网&#x7EDC;**（RPC/Chain ID 等参数见下）**。切换成功后，Linea 的操作步骤流程与 BSC 完全一致。为便于理解，所有教程复用 BSC 演示截图。**请放心参考图示步骤，仅需在实际环境中选择 Linea 网络即可。**
{% endhint %}

***

### :cyclone: Linea 主网参数速查 (Network Params) <a href="#plasma-zhu-wang-can-shu-su-cha-2025-zui-xin" id="plasma-zhu-wang-can-shu-su-cha-2025-zui-xin"></a>

<table><thead><tr><th width="153.87109375">参数</th><th width="310.1953125">值</th><th>说明</th></tr></thead><tbody><tr><td><strong>网络名称</strong></td><td><strong>Linea</strong></td><td>在 MetaMask 中自动识别</td></tr><tr><td><strong>RPC URL</strong></td><td><p><code>https://1rpc.io/linea</code><br><br><br></p><p><code>https://rpc.linea.build</code><br></p><p><code>https://linea.drpc.org</code></p></td><td>官方(Infura)节点 &#x26; dRPC</td></tr><tr><td><strong>Chain ID</strong></td><td><strong>59144</strong></td><td>唯一标识</td></tr><tr><td><strong>Gas 代币</strong></td><td><strong>ETH</strong></td><td>⚠️ 使用以太坊 (ETH) 支付 Gas 费</td></tr><tr><td><strong>区块浏览器</strong></td><td><p><a href="https://lineascan.build/">Lineascan</a></p><p><a href="https://www.oklink.com/linea">Oklink Linea</a></p></td><td>推荐浏览器</td></tr><tr><td><strong>区块时间</strong></td><td>≈ 2秒</td><td>速度较快</td></tr><tr><td><strong>共识机制</strong></td><td>zk-Rollup (zkEVM)</td><td>采用零知识证明技术，继承 L1 安全性</td></tr><tr><td><strong>L1 结算层</strong></td><td>Ethereum Mainnet</td><td>zk-Proof 验证上链</td></tr><tr><td><strong>核心特性</strong></td><td>ConsenSys 原生集成</td><td>与 MetaMask、Infura 同属 ConsenSys 旗下</td></tr><tr><td><strong>地址格式</strong></td><td>0x 开头 (EVM 兼容)</td><td>100% 兼容以太坊地址格式</td></tr><tr><td><strong>推荐钱包</strong></td><td>MetaMask / OKX Wallet / Rabby</td><td>MetaMask 对其有原生级别的支持</td></tr><tr><td><strong>官方文档</strong></td><td><a href="https://docs.linea.build/">Linea Docs</a></td><td>生态与开发详细指南</td></tr></tbody></table>

🎯 **Linea 优势**： 由 MetaMask 的母公司 ConsenSys 打造，拥有业内最强的钱包入口集成优势；其 zkEVM 技术实现了字节码级别的等效性，开发者迁移 DApp 几乎零成本。

***

### ⚙️ 第一步：节点与环境配置 (RPC)

**注意**：Linea 主网已稳定运行，且在 MetaMask 钱包网络列表中通常已**默认内置**（部分版本需手动开启）。如需手动添加，请使用以下参数。

{% hint style="info" %}
**🔌 Linea Mainnet 配置参数**

* **Network Name**: `Linea Mainnet`
* **RPC URL**: `https://rpc.linea.build` (Infura 官方节点)
* **Chain ID**: `59144`
* **Currency Symbol**: **ETH**
* **Block Explorer**: `https://lineascan.build`
  {% endhint %}

***

### 🛠 第二步：核心功能操作指引

SlerfTools 完美兼容 Linea 的 zkEVM 环境，为您提供安全、极速的链上工具体验。

{% hint style="info" %}
👉 **通用操作说明（必读）**： 为了统一维护，**下方教程可能以 BSC 界面为例进行演示**。 在 **Linea** 操作时，逻辑完全一致！您只需：

1. 参考教程的点击步骤。
2. 将截图中的 **BNB** 理解为您当前的 **ETH**。
3. 确保钱包已连接到 **Linea Mainnet** (Chain ID: 59144)。
   {% endhint %}

#### 🪙 一键发币 (Token Launch)

* [**创建标准代币**](https://slerf.tools/zh-cn/token-creator/linea) (Linea ERC20)
  * *利用 zkEVM 的低成本特性，快速部署项目代币，即刻被 MetaMask 识别。*
  * 👉 点击[查看发币教程](/bsc-zh/token-management/token-creator.md)
* [**创建靓号代币**](https://slerf.tools/zh-cn/token-vanity-creator/linea) (Vanity Contract Address)
  * *生成以 `0xLin...` 或 `0xCons...` 开头的极品合约地址。*
  * 👉 点击[查看靓号生成教程](/bsc-zh/token-management/token-vanity-creator.md)

#### 👛 钱包管理 (Wallet Tools)

* [**批量生成钱包**](https://slerf.tools/zh-cn/wallet-creator/linea) (Batch Generator)
  * *离线批量生成 100+ 个 Linea 专用钱包，私钥安全，便于生态交互。*
  * 👉 点击[查看钱包生成教程](/bsc-zh/wallet-manage/wallet-creator.md)
* [**生成靓号钱包**](https://slerf.tools/zh-cn/vanity-wallet-generator/linea) (Vanity Address)
  * *定制属于您的个性化 0x 地址，提升项目方专业形象。*
  * 👉 点击[查看靓号钱包教程](/bsc-zh/wallet-manage/vanity-wallet-generator.md)

#### 📦 批量交互系统 (Batch System)

* [**批量转账 (一转多)**](https://slerf.tools/zh-cn/multi-sender/linea) (Multi-Sender)
  * *向数千个地址分发 ETH 或 Linea 上的代币，zk-Proof 批处理技术让 Gas 更便宜。*
  * 👉 点击[查看批量转账教程](/bsc-zh/multisender/multi-sender-one-to-many.md)
* [**批量归集 (多转一)**](https://slerf.tools/zh-cn/multi-collector/linea) (Asset Collection)
  * *一键归集分散在各子账号的资金，是由于 Linea 空投活动火爆，该功能为工作室必备。*
  * 👉 点击[查看资金归集教程](/bsc-zh/multisender/token-batch-collection.md)

#### 📈 市值管理 (Market Cap Management)

* **批量交易** (Batch Trading)
  * *用多个钱包同步在 LineaSwap 或 SyncSwap 上买入/卖出同一代币，统一参数批量执行。*
  * 👉 点击[查看批量交易教程](/bsc-zh/trading-tools/pancakeswap-batch-swap.md)

***

### ⛽️ Gas 费说明与优化 ( ETH )

Linea 的 Gas 机制近期进行了重大升级（Alpha v2），大幅压缩了 Call Data 费用。

**1. 费用概况**

* **普通交易**：消耗 **ETH**。目前 Linea 的交互成本已降至 $0.05 - $0.15 区间（相比刚上线时降低了 80%）。
* **zk 证明成本**：不同于 OP 系 L2，Linea 的费用中包含一部分用于生成零知识证明的算力成本，但这部分由系统优化，用户感知不明显。

**2. 如何获得 Gas (ETH)?**

* **MetaMask Portfolio**：由于是亲儿子，MetaMask 钱包内置的 "Bridge" 功能对 Linea 支持最好，体验最丝滑。
* **官方桥 (Linea Bridge)**：从 ETH 主网官方桥跨入。**注意：官方桥提现目前可能需要较长的等待时间 (数小时到1天)，用于生成最终证明。**
* **第三方桥**：推荐 **Orbiter** 或 **Owlto**，支持从 Arbitrum/Base 秒跨到 Linea，避开官方桥的等待期。

**3. 节省技巧**

* **避开 L1 拥堵**：Linea 最终仍需将 zk 证明提交到以太坊去验证，因此 ETH 主网的 Gas Price 仍会间接影响 Linea 费用。
* **批量操作**：SlerfTools 的批量交易在 Linea 上同样能享受 zk 批处理带来的成本优势。

***

### 📊 常用资源列表 (Dev Resources)

**注意**：Linea 上的 USDC 也经历了版本迭代，请认准 **Native** 版本。

* **WETH (Wrapped Ether)**: `0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f`
* **USDC (Native)**: `0x176211869cA2b568f2A7D4EE941E073a821EE1ff` (Circle 官方原生发行，**推荐**)
* **USDT (Bridged)**: `0xA219439258ca9da29E9Cc4cE5596924745e12B93` (从主网官方桥跨入)
* **LineaScan**: `https://lineascan.build` (界面与 Etherscan 完全一致)

> ⚠️ **安全提示：** 请始终通过官方渠道核实合约地址，谨防钓鱼网站。

👉 查看更多[链上资源](/bsc-zh/help/on-chain-resources.md)

***

### ❓ Linea 专属 FAQ

<details>

<summary><strong>为什么我的 MetaMask 默认就有 Linea 网络？</strong></summary>

因为 Linea 是 **Consensys** 也就是 **MetaMask 的母公司**开发的。这被称为“出厂设置”。这意味着您在 Linea 上发行的项目，天然覆盖了数千万 MetaMask 用户，无需教他们如何添加 RPC。

</details>

<details>

<summary><strong>Linea 和 zkSync 都是 zkEVM，有什么区别？</strong></summary>

主要区别在于 **EVM 等效性** 和 **生态背景**。

* **Linea**: 与以太坊几乎 100% 兼容 (Type 2 zkEVM)，开发者迁移代码几乎不用改。且背靠 MetaMask 流量入口。
* **zkSync**: 采用更激进的技术架构，虽然 TPS 可能更高，但部分复杂合约可能需要重新编译适配。

</details>

<details>

<summary><strong>Linea 上的 USDC 为什么不能在某些 DEX 交易？</strong></summary>

这通常是因为您持有的是 **USDC.e** (非原生) 而池子是 **USDC** (原生)，或者反之。

* Circle 已在 Linea 上部署了原生 USDC (`0x1762...`)。
* 建议使用 **MetaMask 内置的 Swap** 功能，它会自动帮您寻找路径，通常能自动处理这两种 USDC 的流动性。

</details>

<details>

<summary><strong>Linea 有测试网吗？</strong></summary>

有的，叫 **Linea Sepolia**。对于新手开发者，强烈建议先在测试网免费部署合约，确认无误后再切换到主网消耗真金白银。

</details>

<details>

<summary><strong>使用批量归集功能会被 Linea 判定为女巫 (Sybil) 吗？</strong></summary>

**风险提示**：Linea 官方对女巫攻击（刷空投）的检测确实非常严格（如 POH 计划）。如果您使用批量归集功能是为了整理真实项目资金，是安全的。但如果您是为了刷积分 (Linea Voyage)，频繁的资金归集行为（特别是链上关联明显的“星型结构”）确实容易被女巫系统标记。

</details>

🚀 **准备就绪**：👉 马上体验[ Linea 的高性能](https://slerf.tools/zh-cn/linea)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.slerf.tools/bsc-zh/multichain-setup/linea-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
