X Layer Testnet RPC EndpointsX Layer Testnet uses OKB as its native currency. Its Chain ID is 195 (0xc3). Below are 2 public RPC endpoints you can use to connect wallets, dApps, and developer tools to X Layer Testnet.

Decentralized RPC Network
100+ blockchain RPCs
No rate limits
For builders and traders
| Blockchain | RPC URL | Chain ID | Native Currency | Block Explorer | Actions |
|---|---|---|---|---|---|
⏳X Layer | https://testrpc.xlayer.tech | 0xc3 | OKB | https://www.okx.com/web3/explorer/xlayer-test | |
⏳X Layer | https://xlayertestrpc.okx.com | 0xc3 | OKB | https://www.okx.com/web3/explorer/xlayer-test |
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://testrpc.xlayer.tech");
const network = await provider.getNetwork();
console.log(network.chainId); // 195nThere are 2 public RPC endpoints for X Layer Testnet, including https://testrpc.xlayer.tech. See the full list in the table above.
The Chain ID for X Layer Testnet is 195 (0xc3 in hexadecimal).
The native currency of X Layer Testnet is OKB.
Use the "Add to Wallet" button on this page to add X Layer Testnet to MetaMask automatically, or follow our step-by-step guide for X Layer.