Chain profile

X Layer chain ID 196 and mainnet RPC URL

Source snapshot

Source evidence snapshot July 4, 2026. OKX documentation lists X Layer mainnet with chain ID 196, RPC URL https://rpc.xlayer.tech, OKB token symbol, and the OKX block explorer.

Quick settings

X Layer RPC status and chain ID answer

X Layer mainnet uses chain ID 196 / 0xc4, RPC URL https://rpc.xlayer.tech, explorer https://www.okx.com/web3/explorer/xlayer, and OKB as the gas token. Use the latest source check and linked docs to verify the fields before adding the network to a wallet, script, or app.

Chain ID
196 / 0xc4
RPC URL
https://rpc.xlayer.tech
Explorer
https://www.okx.com/web3/explorer/xlayer
Gas token
OKB
Source docs
OKX X Layer docs
Latest check
Jul 4, 2026
Source snapshot
July 4, 2026
Config path
wallet_addEthereumChain JSON

Copy X Layer configOpen source docsExplorer directoryGas token directory

Good fit when you need:
  • the X Layer chain ID, RPC URL, explorer, and gas token in one place;
  • source documentation links beside the copied setup fields;
  • manual wallet config fields without connecting a wallet or choosing an RPC provider.
Before you paste these fields:
  • compare the chain ID against the source link on this page;
  • open the explorer once and confirm it matches the network you expect;
  • use the public RPC for setup checks, then choose monitored infrastructure for production traffic.
Chain ID196 / 0xc4
RPC URLhttps://rpc.xlayer.tech
Explorerhttps://www.okx.com/web3/explorer/xlayer
Gas tokenOKB
VerificationVerified metadata
Metadata labelJuly 4, 2026
Evidence snapshot

Verification record

Manual metadata review and automated evidence checks are tracked separately. This is not a live uptime, latency, or production reliability monitor.

Manual metadata review
Verification status
Verified metadata
Verification run
source-monitoring-2026-07-04
Verification tool
source-monitoring-refresh
Source set
OKX X Layer docs
Manual review cadence
monthly; after August 3, 2026
Latest recorded chain ID probe
eth_chainId matched expected 0xc4; observed 0xc4 on

MethodologyReport a correction

X Layer wallet-add fields

Wallet directory sites often expose a connect button. Main.net keeps the same MetaMask and EIP-3085 setup fields as text so developers can compare them with official/source docs before calling wallet_addEthereumChain.

chainId
0xc4 (196)
chainName
X Layer
nativeCurrency
OKB; name OKB, symbol OKB, decimals 18
rpcUrls
https://rpc.xlayer.tech
blockExplorerUrls
https://www.okx.com/web3/explorer/xlayer

Monitoring evidence

These checks are review signals only. They are not uptime, latency, privacy, or production reliability claims.

Snapshot generated
Source checks
2 sources checked
Source changes
0 changes since the previous source hash snapshot
Source fetch failures
0
eth_chainId probe
matched expected 0xc4
Per-source check timing
Included in the monitoring snapshot, not used as this page's review date

View monitoring snapshots orsource change history.

Network endpoints

Primary public RPC
https://rpc.xlayer.tech
Explorer
https://www.okx.com/web3/explorer/xlayer
Official/source documentation
OKX X Layer docs
Chain type
Ethereum L2 mainnet
Chain ID hex
0xc4
Manual review cadence
monthly; next review after August 3, 2026

X Layer common questions

What is the X Layer mainnet RPC URL?
X Layer's listed primary public RPC URL is https://rpc.xlayer.tech.
What is X Layer's chain ID?
X Layer's listed chain ID is 196.
What block explorer does X Layer use?
X Layer's listed block explorer is https://www.okx.com/web3/explorer/xlayer.
What gas token does X Layer use?
X Layer's listed gas token is OKB.

Copy-ready config

Neutral app configuration built from the verified fields above. Copy buttons only place text on your clipboard; they do not connect a wallet, request permissions, or rank RPC providers.

Chain ID decimal196
Chain ID hex0xc4
RPC URLhttps://rpc.xlayer.tech
Explorer URLhttps://www.okx.com/web3/explorer/xlayer
EIP-3085-shaped JSON

Rendered as text for manual review before use.

{
  "chainId": "0xc4",
  "chainName": "X Layer",
  "nativeCurrency": {
    "name": "OKB",
    "symbol": "OKB",
    "decimals": 18
  },
  "rpcUrls": [
    "https://rpc.xlayer.tech"
  ],
  "blockExplorerUrls": [
    "https://www.okx.com/web3/explorer/xlayer"
  ]
}

Developer snippets

Static examples generated from Main.net fields. These snippets are for manual configuration review and read-only RPC checks; they do not connect wallets, create signers, submit writes, or rank providers.

ts

viem chain definition

Read-only snippet generated from Main.net fields. Review official sources before production use.

import { defineChain } from 'viem'

export const xLayerMainnet = defineChain({
  id: 196,
  name: "X Layer",
  nativeCurrency: {
    name: "OKB",
    symbol: "OKB",
    decimals: 18,
  },
  rpcUrls: {
    default: { http: ["https://rpc.xlayer.tech"] },
    public: { http: ["https://rpc.xlayer.tech"] },
  },
  blockExplorers: {
    default: {
      name: "okx.com",
      url: "https://www.okx.com/web3/explorer/xlayer",
    },
  },
})
ts

wagmi read-only config

Read-only transport example generated from Main.net fields. It does not include account adapters or transaction actions.

import { createConfig, http } from 'wagmi'
import { xLayerMainnet } from './x-layer'

export const config = createConfig({
  chains: [xLayerMainnet],
  transports: {
    [xLayerMainnet.id]: http("https://rpc.xlayer.tech"),
  },
})
ts

ethers read-only provider

Read-only JsonRpcProvider example generated from Main.net fields. It does not create a signer.

import { JsonRpcProvider } from 'ethers'

export const provider = new JsonRpcProvider("https://rpc.xlayer.tech", {
  chainId: 196,
  name: "x-layer",
})

const network = await provider.getNetwork()
console.log(network.chainId)
bash

curl eth_chainId check

Minimal JSON-RPC identity check. This verifies the endpoint-reported chain ID only, not uptime or production suitability.

curl -s -X POST \
  -H 'content-type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}' \
  https://rpc.xlayer.tech

# Expected chain ID: 196 / 0xc4

Developer signals

External dashboards a developer may inspect before choosing where to deploy. Main.net links to these references but does not collect the metric values, normalize methodologies, rank chains, or recommend deployments.

Safety note

OKX documents rate limits on public X Layer RPC endpoints. Use dedicated provider access for production traffic and verify testnet/mainnet prompts.

Main.net is an independent reference site. It does not operate this chain, custody assets, execute transactions, or provide investment advice.

Report a correction

If this page has stale RPC, explorer, chain ID, or source information, open a public correction issue with a source link so it can be checked.

Report X Layer dataSend page feedback