X Layer connects OKX users to your dApp. A dedicated endpoint that holds up when exchange-driven traffic arrives all at once.
Drop this URL into your RPC client, HTTP library or wallet config. No SDK install required.
https://endpoints.boltrpc.io/rpc/YOUR_API_KEY/xlayerwss://endpoints.boltrpc.io/ws/YOUR_API_KEY/xlayerReplace YOUR_API_KEY with your API key. Get a free key →
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"
);
const blockNumber = await provider.getBlockNumber();
console.log("Latest block:", blockNumber);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 ID | 196 |
| Protocol | zkEVM (OKX) on ETH |
| Block time | ~3 s |
| Native token | OKB |
| Finality | ZK proof verification on Ethereum |
| EVM compatible | Yes |
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.
Exchange-adjacent DeFi Protocols that receive users from the OKX app see traffic arrive in waves tied to campaigns and listings. Rate-limit-aware design helps, but an endpoint built for bursts helps more.
Bridging and deposit detection Users bridge from OKX to X Layer and expect the balance to appear immediately. Deposit watchers stream Transfer events over WebSocket and confirm receipts in seconds.
Wallets and portfolio tools OKB balances, token holdings and transaction history for every session. Reads scale with the OKX user base. Graceful error handling is only a fallback for an endpoint that stays up.
Multi-chain deployments on Polygon CDK Teams that run on X Layer and other CDK chains reuse one JSON-RPC integration and one key across all of them.
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.
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.
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.
Any Ethereum code works on X Layer with a single endpoint change. Standard Solidity contracts, ABIs and JSON-RPC methods all apply.
Subscribe to X Layer events in real time via WebSocket. Useful for tracking bridge events between OKX CEX and X Layer in real time.
BoltRPC supports X Layer alongside Linea, Scroll and zkSync Era. If you are building across zkEVM chains, one API key covers the full set.
debug_traceCall and debug_traceBlockByNumber are available on X Layer, so you can trace a call before you send it or replay every call in a block without running your own node.
Every standard X method you would expect. Archive-only methods are available on request for qualifying plans.
eth_calleth_getBlockByNumbereth_sendRawTransactioneth_getLogseth_getTransactionReceiptdebug_traceCalldebug_traceBlockByNumberAn API key in under 60 seconds, X plus 35+ other chains, and a team that answers when you write.