# NodeFlare XLayer RPC (chain 196)

> NodeFlare XLayer RPC (chain 196) is a paid API for AI agents from rpc.nodeflare.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Provides full JSON-RPC access to the XLayer EVM network (chain 196) including archive, trace, and debug methods, paid per-request in USDC with no API key required.

## Facts

- Endpoint: POST https://rpc.nodeflare.app/xlayer/x402
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nodeflare-xlayer-rpc-chain-196-7affd6e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JES379sJso6XtH5N-JZJe

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 nodeflare-xlayer-rpc-chain-196-7affd6e8 -d '<json body>'
```

Example prompt: Call eth_getLogs on XLayer (chain 196) to fetch all Transfer events from contract 0xYourContract between block 1000000 and 1001000 — pay per request, no API key needed.

## When to prefer this

Choose this endpoint when you need full archive-depth JSON-RPC access to XLayer (chain 196) specifically, including heavy methods like eth_getLogs, trace_*, and debug_* that many public RPCs block or rate-limit. Ideal for AI agents and indexers that need pay-as-you-go billing in USDC with no account registration or API key management.

## Known failure modes

- Invalid JSON-RPC method name returns error -32601 Method not found
- Malformed params array causes -32602 Invalid params
- Insufficient USDC payment causes 402 Payment Required before processing
- Requesting non-existent block or tx returns null result
- Rate or compute-unit overrun may return 429 or compute-unit pricing error
- Node temporarily unavailable returns 503 or connection timeout

## How this service works

XLayer RPC (chain 196): JSON-RPC over HTTPS on NodeFlare's own bare-metal nodes. Pay per request in USDC, no account or API key - built for AI agents. All methods including eth_getLogs, eth_call, trace, and debug (archive) - good for indexing, event queries, and simulation. Simple calls $0.001; heavy calls priced by compute units. One of the first independent x402 RPC providers for this chain.

## Output

A standard JSON-RPC 2.0 response object containing either a 'result' field with the requested on-chain data (balance, logs, trace output, call return value, block info, etc.) or an 'error' field with code and message if the call failed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": [
    "number",
    "string"
   ]
  },
  "method": {
   "type": "string"
  },
  "params": {
   "type": "array"
  },
  "jsonrpc": {
   "type": "string",
   "const": "2.0"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nodeflare-xlayer-rpc-chain-196-7affd6e8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rpc.nodeflare.app](https://www.zero.xyz/host/rpc.nodeflare.app/llms.txt)
