# PayAI DEX Trending Pools

> PayAI DEX Trending Pools is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns trending Base DEX pools ranked by recent swap volume and net buy/sell flow, computed from on-chain Aerodrome/Uniswap-V3 Swap events

## Facts

- Endpoint: GET https://payai.agentstools.dev/dex/trending
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payai-dex-trending-pools-c6a2fbca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wj5IszMg_8FAC7aoxFUdY

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 payai-dex-trending-pools-c6a2fbca
```

Example prompt: Show me the top 5 trending DEX pools on Base right now, looking back over the last 30 minutes — ranked by swap volume and net buy/sell flow.

## When to prefer this

Choose this endpoint when you need real-time or near-real-time trending pool data specifically on Base chain using Aerodrome or Uniswap-V3 Swap event logs. Prefer it over general DEX aggregators when you want computed buy/sell flow signals (not just volume), and when you need data fresher than what indexed subgraphs typically provide.

## Known failure modes

- Invalid window format returns error (must be like 15m, 30m, 1h and max ~1h)
- Limit out of range (must be 1–6) returns validation error
- No pools found if no swaps occurred in the window (empty result)
- Upstream RPC or event log unavailability may cause 5xx or stale data
- Payment failure (x402) if USDC balance insufficient

## How this service works

Trending Base DEX pools ranked by recent swap volume and net buy/sell flow over a short window, computed by us from public Aerodrome/Uniswap-V3 Swap event logs.

## Output

A ranked list of up to 6 DEX pools (Aerodrome/Uniswap-V3 on Base) sorted by recent swap volume, including net buy/sell flow metrics computed from on-chain Swap event logs over the specified look-back window.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 6,
       "minimum": 1,
       "description": "Max pools to return, ranked by volume (default all tracked)"
      },
      "window": {
       "type": "string",
       "description": "Look-back window, e.g. 15m / 30m / 1h (default 30m, max ~1h)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payai-dex-trending-pools-c6a2fbca/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
