# DEX Trading Pairs by ERC20 Token Contract

> DEX Trading Pairs by ERC20 Token Contract is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns all DEX trading pairs for a given ERC20 token, including exchange names and on-chain liquidity in USD, by contract address and chain.

## Facts

- Endpoint: GET https://api.x402node.dev/token/pairs
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dex-trading-pairs-by-erc20-token-contract-dc315e20
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7pkGUkMGZv-DDR3bPMz59

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 dex-trading-pairs-by-erc20-token-contract-dc315e20
```

Example prompt: Show me all DEX trading pairs and on-chain liquidity in USD for the USDC token at contract 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum mainnet.

## When to prefer this

Use this endpoint when you need to discover where a specific ERC20 token trades on-chain, assess liquidity depth across DEXes for routing decisions, or identify the best venue for a swap. Prefer this over CEX-focused APIs when on-chain/DeFi liquidity is the concern.

## Known failure modes

- Invalid or unrecognized contract address returns empty results or 404
- Unsupported chain ID returns an error or empty pair list
- Missing or invalid API key returns 401 unauthorized
- Token with no indexed DEX activity returns empty pairs array
- Rate limiting or quota exhaustion returns 429

## How this service works

DEX trading pairs for an ERC20 token with exchange names and on-chain liquidity in USD, by contract and chain, from an indexed source behind an API key. For liquidity and routing analysis. token pairs, dex liquidity, trading pairs, liquidity pools, where to trade token Accepts payment on Base or Solana — either network works.

## Output

A list of DEX trading pairs for the specified ERC20 token, including the exchange/protocol name (e.g. Uniswap, SushiSwap), paired token symbols, and on-chain liquidity depth in USD for each pool — sourced from an indexed on-chain data source.

## 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": [
      "address"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "default ethereum"
      },
      "address": {
       "type": "string",
       "description": "token contract 0x..."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dex-trading-pairs-by-erc20-token-contract-dc315e20/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
