New

Solana Beta is now live

xlayer live
X

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 · 196 json-rpc 2.0 websocket

latency

In production at
Chainlink Enjin Tiingo Gains Network

Quick connect

Your endpoint, ready in one line.

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

HTTPS
https://eu.endpoints.matrixed.link/rpc/xlayer?auth=YOUR_API_KEY
WebSocket
wss://eu.endpoints.matrixed.link/ws/xlayer?auth=YOUR_API_KEY

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

Connect

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://eu.endpoints.matrixed.link/rpc/xlayer?auth=YOUR_API_KEY"
);

About X

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.

Why BoltRPC

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.

Methods

Full JSON-RPC coverage.

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

standard

5
eth_call eth_getBlockByNumber eth_sendRawTransaction eth_getLogs eth_getTransactionReceipt

FAQ

X, explained.

Common questions about connecting to X over BoltRPC.

Get started

Pick a chain. Point your client.

One endpoint format, 20+ networks, no SDK. Drop our URL into the client you already use and your integration is done.

https://eu.endpoints.matrixed.link/rpc/ {chain} ?auth= YOUR_API_KEY

No credit card required. · 14-day trial on any tier.