X Layer RPC Endpoint
Fast and reliable. X Layer is served on the Premium plan and needs a paid API key.
Operational
Premium endpoint
Public and Freemium access have been deprecated. This chain needs a Premium key.
JSON-RPC Endpoint
https://mainnet.xl...
Network Status
Block height
70,186,776
Across healthy nodes
Median latency
6 ms
Typical response
Global reach
5
Served from 5 global regions
Archive data
Network
- Network name
- X Layer
- Token
- OKB
- Decimals
- 18
- Chain ID
- 0xc4
- Client
- reth/v1.10.2-5101851 x86_64-unknown-linux-gnu
Quickstart
The X Layer endpoint is served on the Premium plan. Get a Premium key, then send your first request with the endpoint and that key.
List of nodes
The network is kept stable, using a backbone of multiple underlying
nodes. The network is constantly monitored and traffic is
automatically routed to the best suited nodes.
Node
Location
ankr.com
πΊπΈ
New York
πΊπΈ
New York
ankr.com
π³π±
Amsterdam
π³π±
Amsterdam
ankr.com
πΈπ¬
Singapore
πΈπ¬
Singapore
ankr.com
πΊπΈ
San Francisco
πΊπΈ
San Francisco
Plans
X Layer is served on the Premium plan. Upgrade for higher throughput and advanced methods, or talk to us about a custom Enterprise setup.
Free
- No API key required
- All standard JSON-RPC methods
- Community rate limit
- Best-effort availability
Premium
Popular
- Everything in Free, plus a dedicated API key
- Higher throughput and rate limits
- Archive and trace methods
- 99.9% uptime and priority routing
- Usage analytics and support
Enterprise
- Everything in Premium, plus custom throughput
- Dedicated infrastructure and multi-region routing
- Custom SLA and 24/7 support
- Compliance and security add-ons
Ready for more? Upgrade to Premium
Try ANKR
Resources
Everything you need to start building on X Layer.
Documentation
Guides, API reference, and integration docs for X Layer.
Block Explorer
Inspect blocks, transactions, and addresses on X Layer.
Faucet
Get testnet tokens to start experimenting on X Layer.
X Layer Bridge
OKX's official mainnet bridge for moving assets to/from X Layer L2 (linked throughout X Layer's official docs/site).
xlayer-docs (GitHub source)
Official source repo for the X Layer documentation, hosted under OKX's own GitHub org (okx).
X Layer RPC: frequently asked questions
What is the X Layer RPC endpoint?
A JSON-RPC endpoint for the X Layer network, operated by Ankr. Public and Freemium access have been deprecated: X Layer is served on the Premium plan and needs a paid API key.
Is the X Layer RPC endpoint free to use?
No. X Layer is served on the Premium plan. Keyless and free-plan access to this network have been deprecated.
How do I connect to X Layer?
Get a Premium key on Ankr RPC, then take the endpoint with that key and set it as the provider URL in your library of choice (ethers.js, web3.js, viem, or any JSON-RPC client).
Need more? Explore Ankr RPC.
Made with ♥ by
Ankr
© 2026