Home

X Layer (OKB) API Documentation

X Layer

X Layer (OKB) is an EVM-compatible Ethereum Layer 2 using sequencer-based OP Stack execution, after migrating from its original Polygon CDK architecture and moving its execution client from geth to reth in 2026. Solidity contracts execute against Ethereum-style account state, while execution and rollup nodes process Layer 2 transactions and maintain balances, contract storage, blocks, receipts, and logs. Because X Layer follows OP Stack and EVM conventions, Ethereum transaction formats, tooling, and JSON-RPC semantics provide the same integration baseline as other EVM Layer 2 networks.

X Layer API Methods and Endpoints

NOWNodes exposes X Layer's interface, plus a few others, depending on what your integration needs: JSON-RPC for reading chain state and broadcasting transactions, Blockbook for indexed address, balance, transaction, and block lookups, and Trace/Debug for step-level execution analysis.

Browse the interfaces below for endpoint details, request parameters, response formats, and integration examples. Create an API key, select Mainnet or Testnet, choose the required interface, and start sending requests from your application.

Weighing X Layer RPC providers against each other? Read the comparison guide on our blog — this page stays focused on integration reference.

Quick start

01

Get an API key

Sign up and generate a free key from the dashboard.

Get key →
02

Select environment

Mainnet or Sepolia testnet.

03

Choose an interface

RPC, WSS, Blockbook, or Trace/Debug.

04

Send a request

Call it from your application.

RPCJSON-RPCStandard RPC methods for reading chain state and broadcasting transactions.Node APIs →WSSWebSocketPersistent connections for new blocks, pending transactions, and log events as they happen.WSS API →T/DTrace & DebugStep-level execution traces for inspecting calls and diagnosing transactions.Trace & Debug API →ARCArchive modeFull historical state access beyond standard node retention.Archive nodes →MCPModel Context ProtocolThe Model Context Protocol (MCP) is an open standard that lets AI assistants call external tools through a uniform interface.MCP →

Ready to build on: XLAYER

Create a free API key and start sending requests in minutes.