# X Layer RPC and network details

Source: https://www.alchemy.com/rpc/xlayer

X Layer is a zkEVM Layer 2 built by OKX using Polygon CDK. It uses OKB as its native gas token and connects OKX's 50M+ users with the broader Ethereum ecosystem, offering low fees and full EVM compatibility via zero-knowledge proofs.

## Network details

- Network: Mainnet
- Chain ID: 196
- Environment: Mainnet
- Category: L2
- Native token: OKB
- Gas token: OKB

## Endpoints

- Alchemy RPC: https://xlayer-mainnet.g.alchemy.com/v2/API_KEY
- Alchemy WebSocket: wss://xlayer-mainnet.g.alchemy.com/v2/API_KEY

Replace API_KEY with a key from https://dashboard.alchemy.com/signup.

## Alchemy product support

Supported on X Layer: RPC API, Debug API, Bundler API, Websockets, Gas Manager.

Not currently supported: Transaction receipts API, Block Timestamp API, User OP Simulation API, Prices API, Trace API, Token API, NFT API, gRPC, Webhooks, Transfers API.

## Build on Alchemy

Alchemy offers reliable X Layer RPC endpoints, block data streaming via websockets, and a Debug API for inspecting onchain transactions, so you can build and scale with confidence.

## Available networks

- X Layer Testnet (testnet): https://www.alchemy.com/rpc/xlayer-testnet

## Links

- Official docs: https://web3.okx.com/xlayer/docs
- Website: https://www.okx.com/xlayer
- Block explorer: https://www.oklink.com/x-layer
