Top DEX pools by TVL

$0.001 per call · USDC via x402 · POST /api/dex-top-pools

Top DEX pools (Uniswap, Sushi, Curve, Aerodrome, etc.) ranked by current TVL - filterable by chain and project. Send POST /api/dex-top-pools with no required fields (3 optional) and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, chain, project, count and pools.

Sourced from DeFiLlama's public Yields API (keyless). Each row carries chain, project slug, symbol pair, TVL in USD, current APY, and pool ID for follow-up queries.

Category: Crypto & onchain data · Tags: crypto dex tvl defillama pools yield

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
chainstringnoChain name as DeFiLlama uses it (Ethereum, Base, Polygon, Arbitrum, Optimism, etc.). Case-insensitive. Omit for all chains.
projectstringnoProject slug substring (uniswap-v3, aerodrome-v1, curve-dex, etc.). Case-insensitive substring match. Omit for all DEXes.
limitnumbernoMax pools to return (1-50, default 10).

Example request

curl -i -X POST https://agent402.tools/api/dex-top-pools \
  -H "Content-Type: application/json" \
  -d '{"chain":"Base","project":"uniswap-v3","limit":5}'

Without payment this returns HTTP 402 Payment Required with the exact price for dex-top-pools; any x402 v2 or MPP client pays it and retries.

Example response

{
  "source": "defillama-yields",
  "chain": "Base",
  "project": "uniswap-v3",
  "count": 5,
  "pools": [
    {
      "pool": "abc123",
      "chain": "Base",
      "project": "uniswap-v3",
      "symbol": "WETH-USDC",
      "tvlUsd": 45000000,
      "apy": 12.3
    }
  ]
}
FieldTypeAlways presentIn the example
sourcestringyesdefillama-yields
chainstringyesBase
projectstringyesuniswap-v3
countnumberyes5
poolsarray of objectsyes1 item in the example

From an MCP client

catalog.call {
  "slug": "dex-top-pools",
  "params": {
    "chain": "Base",
    "project": "uniswap-v3",
    "limit": 5
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for dex-top-pools; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/dex-top-pools", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "chain": "Base",
    "project": "uniswap-v3",
    "limit": 5
  }),
});

Related tools

DeFi yield screener

$0.002 · POST /api/defi-yields

Screen DeFi yield pools (lending, LP, staking, vaults) across every chain from DefiLlama's free Yields dataset: filter b…

DeFi protocols ranked by TVL

$0.002 · POST /api/defi-protocols

DeFi protocols ranked by current TVL from DefiLlama's free protocol list: filter by category (Lending, Dexs, Liquid Stak…

DeFi yield pool history

$0.002 · POST /api/defi-yield-history

Daily APY and TVL history for one DeFi yield pool (DefiLlama pool id from defi-yields): per-day total/base/reward APY an…

DeFi chain TVL history

$0.002 · POST /api/defi-chain-tvl-history

Daily TVL history for one chain (Ethereum, Base, Solana, Arbitrum...) or for all of DeFi (chain "all") from DefiLlama's …

DeFi TVL by chain

$0.002 · POST /api/defi-chains

Blockchains ranked by DeFi TVL from DefiLlama's free chain list: name, TVL in USD, share of total DeFi TVL, native token…

DEX volume by protocol

$0.001 · POST /api/defi-dex-volume

Decentralized exchanges ranked by 24h spot trading volume from DefiLlama's free DEX overview: per-DEX 24h/7d/30d/1y/all-…