跳转到主要内容

网络参数

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

连接端点

公共 HTTPS RPC 端点可在 https://testnet-rpc.plasma.to 访问。
通过我们的 RPC 提供商合作伙伴可同时获得 HTTPS 与 WebSocket 端点。
curl --location 'https://testnet-rpc.plasma.to' --header 'Content-Type: application/json' --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}'
输出类似如下:
{"jsonrpc":"2.0","id":1,"result":"0x9f61b"}

区块浏览器

服务URL状态
Explorerhttps://testnet.plasmascan.to上线

Gas 与手续费

Plasma Testnet 支持以下多种代币支付手续费:
代币代号状态
Plasma Testnet 原生代币XPL上线
测试网 USD₮0USD₮0开发中
零手续费的 USD₮0 转账目前正在开发中,很快将可供测试。

开发资源

水龙头

代币URL状态
XPLopenfaucet.org上线
XPLQuickNode faucet上线

链配置示例

浏览器钱包的网络配置

使用以下参数将 Plasma Testnet 添加到浏览器钱包(MetaMask、Trust Wallet、Rabby):
  • Network NamePlasma Testnet
  • RPC URLhttps://testnet-rpc.plasma.to
  • Chain ID9746
  • Currency SymbolXPL
  • Block Explorer URLhttps://testnet.plasmascan.to
详细的钱包路径与截图请参阅浏览器钱包配置指南。

Hardhat

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

Truffle

// 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
    }
  }
};