X Layer Mainnet

Add X Layer Mainnet to Your Wallet — MetaMask, OKX, Rabby, Trust Wallet

Chain ID: 196·Symbol: OKB

X Layer Mainnet is an EVM-compatible blockchain with Chain ID 196 and native token OKB. This page lets you add X Layer Mainnet to MetaMask, Rabby Wallet, OKX Wallet or Trust Wallet in one click — no manual Chain ID or RPC entry required.

RPC Endpoints
https://rpc.xlayer.tech
https://xlayerrpc.okx.com

Block Explorer

What is X Layer Mainnet?

X Layer Mainnet is an EVM (Ethereum Virtual Machine) compatible blockchain network. Any EVM wallet — MetaMask, Rabby, OKX Wallet, Trust Wallet, Coinbase Wallet — can connect and transact on X Layer Mainnet once you add the network configuration.

Why do you need to add X Layer Mainnet to your wallet?

MetaMask and most wallets only come pre-configured with Ethereum Mainnet. To transact, swap tokens, or use dApps on X Layer Mainnet, you need to add the network first. Entering an incorrect Chain ID or RPC can put your assets at risk. Use the "Add to wallet" button above — data sourced directly from chainid.network, the canonical Ethereum chain registry.

How to add X Layer Mainnet to your wallet

  1. 1

    Click Add to wallet

    Press the "Add to wallet" button above. MetaMask, OKX Wallet, Rabby Wallet or Trust Wallet will show a popup asking you to confirm adding the X Layer Mainnet network.

  2. 2

    Confirm in your wallet

    Your wallet shows the X Layer Mainnet network details: Chain ID 196, native token OKB. Verify the Chain ID is correct, then click "Approve" or "Add Network".

  3. 3

    Switch to the new network

    After confirming, your wallet automatically switches to X Layer Mainnet. You can start transacting right away — you will need OKB to pay gas fees.

X Layer Mainnet network technical details

To add manually, go to Settings → Networks → Add Network in MetaMask (or your wallet's equivalent) and enter the details below:

NameX Layer Mainnet
Chain ID196
Native tokenOKB
Decimals18
RPC Endpointhttps://rpc.xlayer.tech
Block Explorerhttps://www.oklink.com/xlayer

Important notice

  • Always verify Chain ID 196 before confirming — attackers sometimes create fake networks with similar names but different Chain IDs
  • You need OKB tokens in your wallet to pay gas fees for transactions on X Layer Mainnet
  • Data on this page is sourced from chainid.network — the community-verified Ethereum chain registry
  • If the "Add to wallet" button doesn't work, your wallet may not support wallet_addEthereumChain — add the network manually using the details below

Frequently asked questions

Is it safe to add X Layer Mainnet to MetaMask?
Yes, if you use the "Add to wallet" button on this page. Data is sourced from chainid.network — the community-audited Ethereum registry. Adding a network does not expose your private key or grant any permissions to the dApp.
What is X Layer Mainnet Chain ID?
The Chain ID of X Layer Mainnet is 196. This unique number identifies the network and prevents MetaMask and other EVM wallets from mixing up transactions across different chains.
Do I need OKB tokens to use X Layer Mainnet?
Yes. Every transaction on X Layer Mainnet requires OKB to pay gas fees. You can purchase OKB on exchanges and bridge it to X Layer Mainnet, or use a faucet if this is a testnet.
What is the X Layer Mainnet RPC endpoint?
An RPC endpoint is the server address your wallet uses to communicate with the X Layer Mainnet blockchain — sending transactions, reading balances, and checking state. One popular X Layer Mainnet RPC is https://rpc.xlayer.tech. This page shows live latency for each RPC so you can pick the fastest one.
My wallet says X Layer Mainnet already exists when I click Add — what do I do?
That's completely normal. If X Layer Mainnet is already in your wallet, it will simply switch to that network instead of adding a duplicate — no error or conflict.
I added X Layer Mainnet but the network won't load — what's wrong?
The most common cause is a broken or overloaded RPC endpoint. Your wallet uses RPC to connect to the blockchain — if the RPC is down, the network won't load even if it was added correctly. Fix: copy a different RPC from the list above (prefer green low-latency ones), then go to Settings → Networks in your wallet and replace the old RPC with the new one. Watch the tutorial video above for step-by-step instructions on updating your RPC.