# LION Keyless Base RPC (x402)

> LION Keyless Base RPC (x402) is a paid API for AI agents from lion-x402.lionmaster-operations.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Executes read-only JSON-RPC calls against the Base (EVM) blockchain, gated by per-call USDC micropayment via x402 — no API key or signup required.

## Facts

- Endpoint: GET https://lion-x402.lionmaster-operations.workers.dev/api/x402/keyless-base-rpc-json
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-keyless-base-rpc-x402-b54d22d2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4oQMyDihS39qeM-ET7TTm

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 lion-keyless-base-rpc-x402-b54d22d2
```

Example prompt: Can you check the ETH balance of wallet address 0xAbC...123 on Base mainnet right now using a keyless RPC call — no API key needed, just pay per call?

## When to prefer this

Choose this endpoint when an AI agent needs to query Base blockchain state (balances, contract calls, logs, block data) without provisioning an API key or creating an account — ideal for autonomous agents that can pay $0.001 USDC per call via x402 micropayment. Prefer over traditional RPC providers when zero-signup, pay-as-you-go access is required.

## Known failure modes

- Payment not provided or rejected — endpoint returns HTTP 402 with payment requirements
- Invalid or unsupported RPC method (write methods like eth_sendRawTransaction) — returns JSON-RPC error
- Malformed JSON-RPC body (missing 'method' or 'jsonrpc') — returns validation error
- Batch exceeds 10 requests — likely rejected or partially processed
- Upstream Base node error — propagated as standard JSON-RPC error object
- Network timeout on Base node — results in 5xx or JSON-RPC internal error

## How this service works

Keyless multi-chain JSON-RPC reads, Base + Ethereum, from $0.001 (?chain=ethereum)

## Output

A standard JSON-RPC 2.0 response object containing the 'result' field (e.g. hex balance, block number, call return value, or log array), plus metadata fields 'network' (eip155:8453) and 'asset_id' (KEYLESS_BASE_RPC_001).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "method"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "base|ethereum"
      },
      "method": {
       "type": "string",
       "description": "JSON-RPC method e.g. eth_blockNumber"
      },
      "params": {
       "type": "string",
       "description": "JSON array string of params"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "id": 1,
   "result": "0x...",
   "jsonrpc": "2.0"
  },
  "network": "eip155:8453",
  "asset_id": "KEYLESS_BASE_RPC_001"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-keyless-base-rpc-x402-b54d22d2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lion-x402.lionmaster-operations.workers.dev](https://www.zero.xyz/host/lion-x402.lionmaster-operations.workers.dev/llms.txt)
