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"
);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.
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.
Every standard X method you would expect. Archive-only methods are available on request for qualifying plans.
eth_calleth_getBlockByNumbereth_sendRawTransactioneth_getLogseth_getTransactionReceiptAn API key in under 60 seconds, X plus 23 other chains, and a team that answers when you write.