X Layer Mainnet
High-performance Ethereum-compatible Layer 2 solution
Access X Layer Mainnet through our unified RPC API with 68 supported methods. Benefit from intelligent routing across multiple providers, real-time node health monitoring, and optimized performance with economy and performance routing strategies. Get started with instant API access and transparent pricing.
This endpoint routes read requests to community-run public RPC nodes across multiple regions. Send transaction requests are routed to premium infrastructure for guaranteed delivery. Ideal for testing and development — no API key required.
Nodes in Sync (Lag Checks)
Daily in-sync status by provider over 30 days for this chain.
Node Correctness (Replay Checks)
Daily replay correctness by provider over 30 days for this chain.
WebSocket Notifications
Real-time subscriptions on X Layer Mainnet are priced per million notifications, separate from the per-request pricing in the method table below.
All subscription types on this chain share the same per-notification price. Pricing as of October 2026.
Supported Methods(68)
Method | Usage | Providers | Price | Latency (p50) |
|---|---|---|---|---|
eth_getBlockByNumber | Medium | 6 | $3.00/M $6.00/M | 8ms 16ms |
eth_chainId | Medium | 6 | $3.00/M $6.00/M | 14ms 9ms |
eth_getTransactionByHash | Medium | 6 | $3.00/M $6.00/M | 42ms 38ms |
eth_getLogs | Medium | 5 | $3.00/M $6.00/M | 32ms 26ms |
eth_gasPrice | Medium | 6 | $3.00/M $6.00/M | 4ms 19ms |
eth_blockNumber | Medium | 6 | $3.00/M $6.00/M | - 199ms |
eth_call | Medium | 6 | $3.00/M $6.00/M | - 10ms |
eth_getCode | Medium | 6 | $3.00/M $6.00/M | 30ms 6ms |
eth_getBalance | Medium | 6 | $3.00/M $6.00/M | - 18ms |
eth_getBlockReceipts | Low | 5 | $3.00/M $6.00/M | 7ms 67ms |
About X Layer Mainnet
X Layer Mainnet is a Layer 2 blockchain network developed by OKX, launched in April 2024. It utilizes the Polygon Chain Development Kit (CDK) to provide a high-performance, Ethereum-compatible environment for decentralized applications.
The network employs a zkEVM validium architecture, combining zero-knowledge proofs with off-chain data storage to enhance scalability and reduce transaction costs. This design allows for faster and more efficient processing of transactions while maintaining security.
OKB serves as the native gas token on X Layer Mainnet, facilitating transaction fees and network operations. In August 2025, OKX optimized the OKB economic model by permanently capping its total supply at 21 million through a significant token burn. This adjustment aims to enhance the token's scarcity and value proposition within the ecosystem.
X Layer Mainnet is connected to the broader on-chain community, offering minimal costs and fast transaction speeds. It supports a wide range of decentralized applications, including those in decentralized finance (DeFi), payments, and real-world asset (RWA) scenarios. The network's integration with the OKX Wallet, OKX Exchange, and OKX Pay provides users with efficient on-chain payment experiences and seamless asset management.