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

# 主网详情

> 连接到 Plasma Mainnet 的配置参考。

## 网络参数

| 参数       | 值                           | 描述                       |
| -------- | --------------------------- | ------------------------ |
| 网络名称     | `Plasma Mainnet Beta`       | Plasma 的公共主网 beta 环境。    |
| 公共 RPC   | `https://rpc.plasma.to`     | 公开的、有速率限制的 RPC 端点。       |
| Chain ID | `9745`                      | Plasma Mainnet 的唯一标识符。   |
| 币种符号     | `XPL`                       | 主网原生代币符号。                |
| 出块时间     | 约 1 秒                       | 区块之间的平均时间。               |
| 共识       | PlasmaBFT（Fast HotStuff 变体） | 权益证明共识机制。                |
| EVM 兼容性  | 完全                          | 与 Ethereum 智能合约 100% 兼容。 |

## 连接端点

公共 HTTPS RPC 端点可在 `https://rpc.plasma.to` 访问。

<Tip>
  通过我们的 [RPC 提供商合作伙伴](../../plasma-chain/tools/rpc-providers)可同时获得 HTTPS 与 WebSocket 端点。
</Tip>

```shell theme={null}
curl --location 'https://rpc.plasma.to' --header 'Content-Type: application/json' --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}'
```

输出类似如下：

```output theme={null}
{"jsonrpc":"2.0","id":1,"result":"0x11180f"}
```

### 区块浏览器

| 服务       | URL                                              | 状态 |
| -------- | ------------------------------------------------ | -- |
| Explorer | [https://plasmascan.to/](https://plasmascan.to/) | 上线 |

## Gas 与手续费

Plasma Mainnet 当前支持以下代币用于支付手续费：

| 代币                  | 代号    | 状态 |
| ------------------- | ----- | -- |
| Plasma Mainnet 原生代币 | `XPL` | 上线 |

*Plasma 将很快支持以多种代币支付手续费。*

## 开发资源

### 文档

| URL                                                | 状态 |
| -------------------------------------------------- | -- |
| [www.plasma.org/docs](https://www.plasma.org/docs) | 上线 |

## 链配置示例

### 浏览器钱包的网络配置

使用以下参数将 Plasma Mainnet Beta 添加到浏览器钱包（MetaMask、Trust Wallet、Rabby）：

* **Network Name**：`Plasma Mainnet Beta`
* **RPC URL**：`https://rpc.plasma.to`
* **Chain ID**：`9745`
* **Currency Symbol**：`XPL`
* **Block Explorer URL**：`https://plasmascan.to`

详细的钱包路径与截图请参阅[浏览器钱包配置](../asset-management/browser-wallet-setup)指南。

### Hardhat

```javascript theme={null}
// hardhat.config.js
module.exports = {
  networks: {
    plasmaMainnet: {
      url: "https://rpc.plasma.to",
      chainId: 9745,
      accounts: [process.env.PRIVATE_KEY]
    }
  }
};
```

### Truffle

```javascript theme={null}
// truffle-config.js
module.exports = {
  networks: {
    plasmaMainnet: {
      provider: () => new HDWalletProvider(MNEMONIC, "https://rpc.plasma.to"),
      network_id: 9745,
      gas: 5500000,
      confirmations: 2,
      timeoutBlocks: 200,
      skipDryRun: true
    }
  }
};
```
