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

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://rpc.xlayer.tech | 0xc4 | OKB | https://www.okx.com/web3/explorer/xlayer | |
⏳X Layer | https://xlayerrpc.okx.com | 0xc4 | OKB | https://www.okx.com/web3/explorer/xlayer |
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://rpc.xlayer.tech");
const network = await provider.getNetwork();
console.log(network.chainId); // 196nThere are 2 public RPC endpoints for X Layer Mainnet, including https://rpc.xlayer.tech. See the full list in the table above.
The Chain ID for X Layer Mainnet is 196 (0xc4 in hexadecimal).
The native currency of X Layer Mainnet is OKB.
Use the "Add to Wallet" button on this page to add X Layer Mainnet to MetaMask automatically, or follow our step-by-step guide for X Layer.