X Layer RPC Node
OKX's zkEVM Layer 2

Connect to X Layer, OKX's zkEVM Layer 2 built on Polygon CDK. Experience ultra-low fees, seamless OKX Wallet integration, and growing ecosystem backed by a leading exchange.

3 M+

Requests per Day

99.9 %

Network Uptime

< 100 ms

Average Response Time

24/7

Technical Support

Specification X Layer Network

Technical characteristics and available endpoints

X Layer (OKB)

Mainnet & Testnet Support

Chain ID 196
Protocol HTTPS / WSS
Uptime 99.9%
Block Time ~2s
Consensus zkEVM (Polygon CDK)
EVM Compatible Yes

X Layer is OKX's Layer 2 scaling solution built using Polygon's Chain Development Kit (CDK) with zkEVM technology. Backed by one of the world's largest cryptocurrency exchanges, X Layer offers low-cost transactions, native OKX Wallet integration, and seamless access to OKX's massive user base and liquidity.

Key capabilities:

  • Built on Polygon CDK with zkEVM security
  • Direct integration with OKX exchange and OKX Wallet
  • Transaction fees significantly lower than Ethereum
  • Access to OKX's 50M+ users and deep liquidity
  • Full EVM compatibility with Ethereum tooling
  • Growing DeFi ecosystem with exchange-backed projects
  • Fast finality with 2-second block time

🔗 RPC Endpoints

HTTPS
https://rpc.crypto-chief.com/xlayer/{YOUR_API_KEY}
WSS
wss://rpc.crypto-chief.com/xlayer/ws/{YOUR_API_KEY}

Replace {YOUR_API_KEY} with your actual API key from the dashboard.

What is an X Layer RPC Node?

Access OKX's zkEVM ecosystem

An X Layer RPC node provides applications with access to OKX's Layer 2 network, enabling low-cost Ethereum-compatible transactions with direct integration to OKX exchange infrastructure. Built on Polygon CDK with zkEVM technology, X Layer combines scalability with the trust and liquidity of a major centralized exchange.

Why X Layer matters

X Layer brings together the best of both worlds — decentralized Layer 2 technology with centralized exchange resources. Backed by OKX, one of the world's largest crypto exchanges, X Layer offers unique advantages including native wallet integration, direct fiat onramps, and potential access to millions of existing OKX users.

X Layer advantages:

  • Exchange integration — direct connection to OKX platform and liquidity
  • zkEVM security — Polygon CDK with zero-knowledge proofs
  • Low fees — significantly cheaper than Ethereum mainnet
  • OKX Wallet support — native integration with OKX's wallet
  • User base access — tap into OKX's 50M+ users
  • EVM compatible — deploy Ethereum contracts unchanged

X Layer architecture

X Layer is built using Polygon's Chain Development Kit (CDK), a modular framework for creating zkEVM-powered Layer 2 chains. This technology stack provides zero-knowledge proof security while maintaining full EVM equivalence, giving developers familiar Ethereum tooling with Layer 2 performance.

How it works:

  1. Transactions submitted to X Layer sequencer
  2. Batched execution on Layer 2 with 2s blocks
  3. Zero-knowledge proofs generated for validity
  4. Proofs and data posted to Ethereum L1
  5. Cryptographic finality once verified on-chain

RPC access

HTTPS endpoints handle standard operations — balance queries, transaction submission, contract calls, and state reads with reliable performance.

WebSocket endpoints enable real-time updates for blocks, transactions, events, and logs — essential for trading interfaces and exchange integrations.

Technical Documentation

Quick start for developers

Supported RPC Methods

X Layer supports all standard Ethereum JSON-RPC methods:

  • eth_blockNumber — current block number
  • eth_getBalance — token balances
  • eth_call — contract view functions
  • eth_sendRawTransaction — submit transactions
  • eth_getTransactionReceipt — transaction status
  • eth_getLogs — event logs
  • eth_gasPrice — current gas price
  • eth_estimateGas — gas estimation
  • eth_subscribe — WebSocket subscriptions

Code Examples

💻

JavaScript (ethers.js) — X Layer Connection:

const { ethers } = require('ethers');

const provider = new ethers.JsonRpcProvider('https://rpc.crypto-chief.com/xlayer/YOUR_API_KEY');

// Verify network
const network = await provider.getNetwork();
console.log('Chain ID:', network.chainId); // 196

// Get balance
const balance = await provider.getBalance('0x...');
console.log('Balance:', ethers.formatEther(balance));

// Send transaction
const wallet = new ethers.Wallet('YOUR_PRIVATE_KEY', provider);
const tx = await wallet.sendTransaction({
  to: '0x...',
  value: ethers.parseEther('0.1')
});
console.log('TX:', tx.hash);
await tx.wait();
💻

Python (web3.py) — X Layer Setup:

from web3 import Web3

w3 = Web3(Web3.HTTPProvider('https://rpc.crypto-chief.com/xlayer/YOUR_API_KEY'))

print('Connected:', w3.is_connected())
print('Chain ID:', w3.eth.chain_id)  # 196
print('Block:', w3.eth.block_number)
print('Gas price:', w3.eth.gas_price)
💻

WebSocket — Real-Time Updates:

const { ethers } = require('ethers');
const provider = new ethers.WebSocketProvider('wss://rpc.crypto-chief.com/xlayer/ws/YOUR_API_KEY');

// Monitor blocks
provider.on('block', (blockNumber) => {
  console.log('New block:', blockNumber);
});

// Monitor events
const filter = {
  address: '0x...',
  topics: [ethers.id('Transfer(address,address,uint256)')]
};

provider.on(filter, (log) => {
  console.log('Event:', log);
});

Best Practices

  • OKX Integration: Leverage OKX Wallet for seamless user onboarding
  • Gas Optimization: Optimize contracts even with low fees
  • Bridge Usage: Use official X Layer bridge for asset transfers
  • EVM Compatibility: Deploy Ethereum contracts without changes
  • Testing: Use testnet before mainnet deployment
  • Monitoring: Implement proper error handling and retry logic

Why choose us?

Reliable infrastructure for X Layer applications

Fast Performance

Optimized infrastructure delivering <95ms latency with efficient routing and caching for OKX-integrated applications.

zkEVM Security

Benefit from Polygon CDK's zero-knowledge proof security with enterprise-grade infrastructure reliability.

Usage Analytics

Monitor RPC metrics including request volume, method distribution, latency, and error rates through dashboard.

Global Access

Nodes deployed globally ensuring low latency for OKX's international user base across all regions.

Auto-Scaling

Infrastructure scales automatically during high traffic maintaining consistent performance.

Technical Support

24/7 support from engineers familiar with X Layer, Polygon CDK, and exchange integrations.

Examples of Use

Build on OKX's Layer 2 ecosystem

X Layer's combination of exchange backing, zkEVM security, and low fees makes it ideal for DeFi applications, trading platforms, and Web3 projects targeting OKX's massive user base.

Exchange-Integrated DeFi

Build DeFi protocols with direct OKX integration. Leverage exchange liquidity, fiat onramps, and seamless user onboarding from OKX's 50M+ users.

Trading Platforms

Create DEXs and trading interfaces with OKX Wallet integration. Our infrastructure supports high-frequency trading and real-time price feeds.

Wallet Applications

Integrate X Layer into multi-chain wallets with native OKX Wallet support for smooth user experience and asset management.

DeFi Protocols

Launch lending, staking, and yield platforms benefiting from X Layer's low fees and growing ecosystem backed by OKX.

NFT Marketplaces

Build NFT platforms with low minting costs and OKX marketplace integration for broader distribution and liquidity.

GameFi & Social

Create blockchain games and social apps leveraging low fees and OKX's user base for rapid user acquisition.

Got questions?
we are here to help

X Layer is OKX's Layer 2 scaling solution built using Polygon CDK with zkEVM technology. It offers low-cost transactions with native OKX exchange integration.

X Layer was built by OKX, one of the world's largest cryptocurrency exchanges, using Polygon's Chain Development Kit (CDK) technology stack.

Yes, X Layer uses Polygon CDK which implements zkEVM technology with zero-knowledge proofs for transaction validity and security.

X Layer transaction fees are significantly lower than Ethereum mainnet, typically costing a fraction of mainnet gas fees.

Yes, X Layer has native OKX Wallet integration making it easy to connect and transact directly from OKX's wallet application.

Yes, X Layer is fully EVM-compatible. Deploy Ethereum smart contracts without changes using standard Ethereum development tools.

Use the official X Layer bridge or bridge directly through OKX Wallet. Assets can be deposited from Ethereum or other supported chains.

Polygon CDK (Chain Development Kit) is a modular framework for building custom zkEVM-powered Layer 2 chains with Ethereum security.

Yes, we provide RPC access to both X Layer mainnet (196) and testnet for development and testing.

Both use similar zkEVM technology, but X Layer is operated by OKX with native exchange integration, while Polygon zkEVM is run by Polygon Labs.

Pricing that grows with your needs.

Free

Start building on Web3 — no credit card.

$0
  • 5 reqs/sec RPC
  • 5 reqs/min Unified API
  • Ultimate chains
  • WSS, Statistics
  • Community support

Pay for use

Flexible pay-as-you-go for any workload.

From $10
  • 400 reqs/sec RPC
  • 300 reqs/min Unified API
  • 10 reqs/min AML
  • EventStream
  • Ultimate chains
  • WSS, Whitelists, Statistics
  • Support portal

Subscription

From $500 monthly plus 20% extra value.

From $500
  • 700 reqs/sec RPC
  • 500 reqs/min Unified API
  • 5 reqs/sec AML
  • EventStream
  • Ultimate chains
  • WSS, Whitelists, Statistics
  • Support portal

Enterprise

Tailored solution for expert builders

Custom terms

All Subscription features plus:

  • Flexible rate limits
  • Engineering team support
  • Custom SLA
  • Personal manager