Skip to main content
RPC operator referenceHTTPS / WSS · JSON-RPC 2.0

X Layer RPC endpoint

X Layer (chain ID 196) is served over HTTPS POST JSON-RPC 2.0. Full nodes back the endpoint, supporting standard EVM methods, debug_* methods. Free, paid plans, and PAYG include X Layer.

Network information

NetworkX Layer
Chain ID196
Endpointhttps://rpc.solidrpc.io/YOUR_API_KEY/evm/196
AccessFree and paid
TypeMainnet · L2
Native currencyOKB
Node typesFull
Methodsstandard, debug
Block historyUse the latest block or a block number up to 128 blocks behind the head for state reads.
eth_getLogs rangeUp to 128 blocks per call. A range that matches many logs can be refused sooner, so split it into smaller ranges or add a filter. Response limits
ProtocolHTTPS JSON-RPC 2.0. WebSocket unavailable. WebSocket details

Quickstart

Fetch the latest X Layer block number. Replace YOUR_API_KEY with a key from the dashboard. New accounts start on the Free plan, no card required (see getting started):

Example
curl https://rpc.solidrpc.io/YOUR_API_KEY/evm/196 \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

Tracing

X Layer has no archive state in this environment, so historical queries outside the full-node retention window are unavailable.

The debug_* tracing namespace is available:

Example
curl https://rpc.solidrpc.io/YOUR_API_KEY/evm/196 \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"debug_traceTransaction","params":["0xTRANSACTION_HASH",{"tracer":"callTracer"}],"id":1}'

Parity-style trace_* methods are not available on this chain. Use debug_traceTransaction and debug_traceBlockByNumber instead.

Details on archive nodes and tracing.

Limits and errors

Quotas and rate limits are account-wide, not per-chain. Method calls to X Layer draw from the same response-unit quota and rate limit as every other network. Error bodies are identical everywhere. See the error reference.

Using an AI agent? Set up agent access and choose a tested task recipe. Check supported methods, account limits, and your approved budget before a large run.