# LION Adaptive Query - Keyless On-Chain Data & RPC for Agents

> LION Adaptive Query - Keyless On-Chain Data & RPC for Agents is a paid API for AI agents from lion-x402.lionmaster-operations.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Executes adaptive queries against Base DEX data and on-chain RPC methods (eth_call, eth_getBalance, eth_getLogs, etc.) with no API key — pay-per-call in USDC via x402.

## Facts

- Endpoint: GET https://lion-x402.lionmaster-operations.workers.dev/api/x402/adaptive-query
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lion-adaptive-query-keyless-on-chain-data-rpc-for-agents-9f067d46
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yBiIG4JDT3i6_lFLQq3bZ

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-adaptive-query-keyless-on-chain-data-rpc-for-agents-9f067d46
```

Example prompt: Using LION, run an adaptive query on Base DEX to get the top 20 tokens sorted by activity — I want their symbols, 24h volume, liquidity in USD, and activity score, no API key needed, just pay per call in USDC.

## When to prefer this

Choose this endpoint when you need keyless, signup-free access to Base on-chain data or DEX analytics, and you are willing to pay per call in USDC via x402. Ideal for AI agents that cannot manage API key secrets but can execute micropayments. Use when you need live DEX token activity/liquidity data or raw EVM RPC calls on Base without provisioning credentials.

## Known failure modes

- Payment not received or insufficient USDC — returns HTTP 402 with payment requirements
- Invalid JSON-RPC method (write methods or unsupported calls) — returns error indicating read-only methods only
- Malformed params array — JSON-RPC error response
- Batch size exceeds 10 — request rejected
- Network or worker timeout — upstream RPC or data source unavailable

## How this service works

Keyless off-chain and on-chain data for AI agents. No API key, no signup - payment is the only gate. Pay-per-call in USDC on Base via x402.

## Output

Returns a JSON object with rows of token or on-chain data including symbol, 24h volume, liquidity USD, token address, and activity score; plus metadata like as_of timestamp, source, network (eip155:8453), row count, confidence score, data age in seconds, and a query echo confirming sort/limit/source parameters.

## 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",
     "properties": {
      "q": {
       "type": "string"
      },
      "mode": {
       "type": "string",
       "description": "auto|rpc|domain|social"
      },
      "domain": {
       "type": "string"
      },
      "method": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "rows": [
   {
    "symbol": "WETH",
    "volume_h24": 500000,
    "liquidity_usd": 1000000,
    "token_address": "0x4200000000000000000000000000000000000006",
    "activity_score": 0.82
   }
  ],
  "as_of": "2026-06-01T00:00:00.000Z",
  "source": "base_dex",
  "network": "eip155:8453",
  "asset_id": "LION_ADAPTIVE_QUERY_001",
  "row_count": 1,
  "confidence": 0.9,
  "query_echo": {
   "sort": "activity",
   "limit": 20,
   "source": "base_dex"
  },
  "data_age_seconds": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-adaptive-query-keyless-on-chain-data-rpc-for-agents-9f067d46/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)
