# LION Adaptive Query - DEX Activity & Token Intelligence

> LION Adaptive Query - DEX Activity & Token Intelligence is a paid API for AI agents from lionx402.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Queries on-chain DEX activity, token liquidity, and volume data on Base/Ethereum, returning Ed25519-attested results paid per-call in USDC via x402

## Facts

- Endpoint: GET https://lionx402.com/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-dex-activity-token-intelligence-dcce3f22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o_dSL27pkhvXJbfOy62PO

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-dex-activity-token-intelligence-dcce3f22
```

Example prompt: Pull the top 20 most active tokens on Base DEX right now, sorted by activity score, and show me each token's 24-hour volume and liquidity in USD — I want cryptographically attested results I can verify.

## When to prefer this

Choose this endpoint when you need real-time, cryptographically attested on-chain DEX token activity data on Base or Ethereum without managing API keys, and you want to pay only per call in USDC rather than a flat subscription. Ideal for agents that need verifiable token liquidity and volume rankings on demand.

## Known failure modes

- Payment not included or insufficient USDC — returns 402 Payment Required
- Invalid sort or source parameter — returns 400 with query echo
- Network congestion on Base causing stale data (data_age_seconds elevated)
- Token address not found on specified DEX — empty rows array returned
- Confidence score below threshold indicating unreliable data aggregation

## How this service works

Multi-source on-chain + market intelligence (dex, risk, yields, wallet, holders, rpc)

## Output

Returns a JSON array of token rows with symbol, 24h volume, liquidity in USD, token address, and activity score; plus metadata including source ('base_dex'), network (eip155:8453), confidence score, data age in seconds, query echo, row count, and an as-of timestamp. Each response is Ed25519-attested for offline verification.

## 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": {
  "service": "LION Verified Company",
  "asset_id": "LION",
  "resolved": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lion-adaptive-query-dex-activity-token-intelligence-dcce3f22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lionx402.com](https://www.zero.xyz/host/lionx402.com/llms.txt)
