> ## 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 Testnet 的配置参考。

## 网络参数

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

## 连接端点

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

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

```shell theme={null}
curl --location 'https://testnet-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":"0x9f61b"}
```

### 区块浏览器

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

## Gas 与手续费

Plasma Testnet 支持以下多种代币支付手续费：

| 代币                  | 代号      | 状态  |
| ------------------- | ------- | --- |
| Plasma Testnet 原生代币 | `XPL`   | 上线  |
| 测试网 USD₮0           | `USD₮0` | 开发中 |

<Tip>
  零手续费的 USD₮0 转账目前正在开发中，很快将可供测试。
</Tip>

## 开发资源

### 水龙头

| 代币  | URL                                                     | 状态 |
| --- | ------------------------------------------------------- | -- |
| XPL | [openfaucet.org](https://openfaucet.org/)               | 上线 |
| XPL | [QuickNode faucet](https://faucet.quicknode.com/plasma) | 上线 |

## 链配置示例

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

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

* **Network Name**：`Plasma Testnet`
* **RPC URL**：`https://testnet-rpc.plasma.to`
* **Chain ID**：`9746`
* **Currency Symbol**：`XPL`
* **Block Explorer URL**：`https://testnet.plasmascan.to`

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

### Hardhat

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

### Truffle

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