X Layer logoX Layer Testnet RPC Endpoints

X 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.

Other X Layer Networks:

dRPC Logo

dRPC

Decentralized RPC Network

100+ blockchain RPCs

No rate limits

For builders and traders

Connect via dRPC
BlockchainRPC URLChain IDNative CurrencyBlock ExplorerActions
X Layer

https://testrpc.xlayer.tech

0xc3OKBhttps://www.okx.com/web3/explorer/xlayer-test
X Layer

https://xlayertestrpc.okx.com

0xc3OKBhttps://www.okx.com/web3/explorer/xlayer-test

Connect to X Layer Testnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://testrpc.xlayer.tech");

const network = await provider.getNetwork();
console.log(network.chainId); // 195n

X Layer Testnet FAQ

What is the RPC URL for X Layer Testnet?

There are 2 public RPC endpoints for X Layer Testnet, including https://testrpc.xlayer.tech. See the full list in the table above.

What is the Chain ID for X Layer Testnet?

The Chain ID for X Layer Testnet is 195 (0xc3 in hexadecimal).

What is the native currency of X Layer Testnet?

The native currency of X Layer Testnet is OKB.

How do I add X Layer Testnet to MetaMask?

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.