X Layer RPC Endpoint

X Layer connects OKX users to your dApp. A dedicated endpoint that holds up when exchange-driven traffic arrives all at once.

chain id · 196JSON-RPC 2.0WebSocketDebug
LIVE LATENCY
14ms
LIVE
gateway round-trip · sampled every second
IN PRODUCTION ATChainlinkEnjinTiingoGains Network

Your endpoint, ready in one line.

Drop this URL into your RPC client, HTTP library or wallet config. No SDK install required.

HTTPS
https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/xlayer
WEBSOCKET
wss://endpoints.boltrpc.io/ws/YOUR_API_KEY/xlayer

Replace YOUR_API_KEY with your API key. Get a free key →

Pick your stack.

Copy-paste examples for the libraries you already use. Swap the API key, hit run.

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider(
  "https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/xlayer"
);

Connect your dApp, bot, or protocol to X Layer Mainnet (OKX’s L2) with BoltRPC. For protocols integrated into the OKX ecosystem, predictable request-unit pricing eliminates the cost variability that comes with exchange-driven traffic spikes.

Chain at a Glance

Chain ID196
ProtocolzkEVM (OKX) on ETH
Block time~3 s
Native tokenOKB
FinalityZK proof verification on Ethereum
EVM compatibleYes

What X Layer is Built For

X Layer is OKX’s Layer 2 blockchain built on Polygon CDK, designed to bridge the OKX exchange ecosystem to Ethereum. It connects OKB holders and OKX’s user base to DeFi and dApps with low fees and fast finality. X Layer’s DeFi activity is backed by OKX’s liquidity and user base, which provides a built-in distribution channel for protocols that integrate with OKX’s CEX infrastructure. Protocols on X Layer often serve users who arrive via the OKX exchange app and bridge to L2 for DeFi activity.

Built for teams that ship on X.

Predictable RU pricing for exchange-integrated protocols

X Layer protocols often see traffic patterns driven by OKX exchange activity: token listings, trading promotions, and bridging surges from OKX's user base. These create sudden, sharp RPC spikes. BoltRPC's published per-method request-unit pricing means those spikes do not translate into billing surprises. You pay for your plan, not for peak events.

OKX ecosystem traffic is volatile by design

X Layer's direct tie to OKX exchange means volatile traffic patterns during market events, token listings, and trading surges. BoltRPC's infrastructure handles these unpredictable spikes without dropped connections.

Polygon CDK architecture support

X Layer is built on Polygon CDK, a framework for zkEVM-compatible chains. BoltRPC supports the full JSON-RPC surface for CDK-based chains, including the same EVM methods that work on other Polygon CDK chains.

Full EVM compatibility

Any Ethereum code works on X Layer with a single endpoint change. Standard Solidity contracts, ABIs, and JSON-RPC methods all apply.

WebSocket for real-time X Layer events

Subscribe to X Layer events in real time via WebSocket. Useful for tracking bridge events between OKX CEX and X Layer in real time.

One provider for multiple zkEVM chains

BoltRPC supports X Layer alongside Linea, Scroll, and zkSync Era. If you are building across zkEVM chains, one API key covers the full set.

Full JSON-RPC coverage.

Every standard X method you would expect. Archive-only methods are available on request for qualifying plans.

STANDARD5
eth_calleth_getBlockByNumbereth_sendRawTransactioneth_getLogseth_getTransactionReceipt

X, explained.

Common questions about connecting to X over BoltRPC.

Ship on X this week.

An API key in under 60 seconds, X plus 23 other chains, and a team that answers when you write.