How to Add X Layer to MetaMask
Summary: X Layer connects to MetaMask in under a minute through ChainList or by entering the official RPC details manually, since the network is fully EVM equivalent.
The network itself has changed substantially since launch. X Layer now runs on an enhanced OP Stack with AggLayer settlement, and OKB remains its sole gas token with supply fixed at 21 million.
ChainList is the most trusted aggregator of EVM-based Layer 1 and 2 networks. It allows users to instantly connect their MetaMask to verified Chain and Network IDs, ensuring a safe connection.
Supported Networks
100+ Layer 1 and Layer 2 chains
Development Team
Built by the Defillama team
Compatible Wallets
MetaMask only
Can I Add X Layer to MetaMask?
Yes, X Layer works with MetaMask out of the box because it is an EVM-equivalent Ethereum Layer 2 built by OKX. No Snap or third-party plugin is needed, just the network details.
One thing to know before you connect: the X Layer you are adding in 2026 is a different network under the hood than the one that launched in April 2024. Following the August 2025 PP Upgrade, X Layer moved to an enhanced OP Stack architecture with 1-second blocks and throughput of up to 5,000 TPS. The Chain ID (196) and RPC URL are unchanged, so an existing MetaMask entry still works, but the block explorer has moved to OKX's own explorer.
Gas on X Layer is paid in OKB, not ETH. You will need a small OKB balance on the network before you can transact, though fees average a fraction of a cent.
How to Add X Layer to MetaMask
The quickest method is ChainList, which autofills verified network parameters into MetaMask. We still check the values against X Layer's official docs before approving the prompt, since a mismatched RPC or Chain ID is the most common way wallet setups go wrong.
Follow these steps to add X Layer to MetaMask:
- Open ChainList: Go to the X Layer Mainnet page on ChainList, confirm the domain is chainlist.org, and click 'Connect Wallet' to link MetaMask.
- Verify the network: Check that the page shows Chain ID 196 and currency OKB. Searching 'X Layer' also surfaces the testnet, so make sure you have the mainnet entry.
- Add to MetaMask: Click 'Add to Metamask', then compare the details in the MetaMask popup against the official network information before approving.
- Switch and fund: Select X Layer in MetaMask's network menu, then bridge or withdraw a small amount of OKB to cover gas. OKX Exchange withdrawals to X Layer are the simplest source.
Once added, dApps on X Layer can prompt MetaMask to switch networks automatically. We review every parameter in those prompts too, since malicious sites can request fake networks with lookalike names.

X Layer RPC and Chain ID
These are the current official settings for adding X Layer Mainnet to MetaMask manually:
- Network Name: X Layer Mainnet
- RPC URL: https://rpc.xlayer.tech
- Chain ID: 196
- Currency Symbol: OKB
- Block Explorer URL: https://www.okx.com/web3/explorer/xlayer
OKX also maintains a second public endpoint at https://xlayerrpc.okx.com if the primary RPC is congested. Both are rate limited to 100 requests per second per IP, which is irrelevant for wallet use but matters if you run bots or indexers.
Note the explorer change: older guides point to OKLink, but the official documentation now lists OKX's integrated Web3 explorer. Update the explorer URL in MetaMask if you added X Layer before the migration.

X Layer Testnet RPC Details
Developers and airdrop hunters testing dApps can add X Layer Testnet with these settings:
- Network Name: X Layer Testnet
- RPC URL: https://testrpc.xlayer.tech/terigon
- Chain ID: 1952
- Currency Symbol: OKB
- Block Explorer URL: https://www.okx.com/web3/explorer/xlayer-test
Mainnet and testnet share the OKB symbol, so the Chain ID is your only reliable check that you are on the right environment. Testnet OKB has no value and is dispensed through the X Layer faucet.
About X Layer
X Layer is OKX's Ethereum Layer 2, originally launched in 2024 as a ZK rollup built with Polygon CDK. The August 2025 PP Upgrade rebuilt it as an optimistic rollup on an enhanced OP Stack, with AggLayer handling cross-chain settlement through pessimistic proofs. The practical result was throughput of up to 5,000 TPS, 1-second blocks, and gas costs reduced to a negligible level. If you want the deeper technical trade-offs behind that switch, our comparison of ZK rollups vs optimistic rollups covers them.
The same upgrade overhauled OKB's economics. OKX burned over 65 million repurchased and treasury OKB, fixed total supply at 21 million, removed minting from the token contract, and phased out the Ethereum L1 version of OKB in favour of the native X Layer asset. OKTChain, OKX's older network, was retired entirely on 1 January 2026, leaving X Layer as the exchange's single on-chain settlement layer and the default network for OKX Pay.
The most recent development is Exchange OS, announced on 26 May 2026, a protocol upgrade that lets any builder stake OKB to deploy their own spot, perpetuals, or outcome market on shared matching, margining, and settlement infrastructure. OKX's own World Cup outcomes market is the first live venue, with permissionless deployment scheduled for Q3 2026. It positions X Layer less as a general-purpose chain and more as trading infrastructure, competing with the likes of Hyperliquid among the leading Layer 2 and scaling networks.

Final Thoughts
Adding X Layer to MetaMask takes a minute through ChainList and slightly longer manually, and the settings above match the official documentation as of June 2026.
The two details worth double-checking are the explorer URL, which moved from OKLink to OKX's own explorer, and your OKB balance, since nothing moves on X Layer without gas in OKB.
With Exchange OS venues starting to go live, expect more dApps to prompt network switches to Chain ID 196. Verify the parameters once, and every subsequent connection is a single click.



