# QuikNode xLayer Testnet RPC (x402)

> QuikNode xLayer Testnet RPC (x402) is a paid API for AI agents from x402.quiknode-cf.pro, paid per call via x402, $10/call, status unknown (last checked 2026-09-15).

Provides JSON-RPC access to the xLayer Testnet blockchain via QuikNode for testing and developing smart contracts and transactions.

## Facts

- Endpoint: POST https://x402.quiknode-cf.pro/xlayer-testnet
- Price: $10/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-quiknode-cf-pro-062ad47d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__meLxoPDZFj7ubsxsiROz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-quiknode-cf-pro-062ad47d -d '<json body>'
```

Example prompt: Call eth_getBalance on xLayer testnet for address 0xAbC123... using JSON-RPC 2.0 to check how much OKB it holds.

## When to prefer this

Choose this endpoint when you need reliable, high-performance JSON-RPC access specifically to the xLayer Testnet (OKX Layer 2) for testing smart contracts or transactions. Prefer this over generic public RPC endpoints when you need QuikNode's infrastructure reliability or are working in an x402 payment-gated agent workflow.

## Known failure modes

- Invalid JSON-RPC method name returns error code -32601 (Method not found)
- Malformed params array returns error code -32602 (Invalid params)
- Payment not fulfilled (402) blocks the request
- Network unavailable or xLayer testnet node down returns 503 or timeout
- Invalid jsonrpc version field causes request rejection

## How this service works

Access to xLayer Testnet (v2) via QuikNode for testing and developing smart contracts and transactions.

## Output

Returns a standard JSON-RPC 2.0 response object containing the result of the requested method (e.g. block number, balance in hex, transaction receipt, call return data) or an error object with code and message if the request failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": [
    "number",
    "string"
   ],
   "description": "Request identifier"
  },
  "method": {
   "type": "string",
   "description": "JSON-RPC method name (e.g., eth_blockNumber, eth_call)"
  },
  "params": {
   "type": "array",
   "description": "Method parameters"
  },
  "jsonrpc": {
   "type": "string",
   "const": "2.0"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-quiknode-cf-pro-062ad47d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.quiknode-cf.pro](https://www.zero.xyz/host/x402.quiknode-cf.pro/llms.txt)
