Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint · rollforge · bestiary · statline · matchpoint · retail · agentops · browserworkflow · modelrouter · compose
$ man dex-liquidity-depth

/dex-liquidity-depth

agentutility / edge-market / dex-liquidity-depth
PRICE / CALL
$0.01
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
dex-liquidity-depth measures dex liquidity depth by summing tvl across every defillama-tracked yield pool holding a given erc-20 on ethereum, base, polygon,…
SYNOPSIS
POST https://x402.agentutility.ai/dex-liquidity-depth
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Measures DEX liquidity depth by summing TVL across every DefiLlama-tracked yield pool holding a given ERC-20 on Ethereum, Base, Polygon, Arbitrum, or Optimism. Returns per-pool TVL + APY plus total liquidity in USD and the deepest pool. Free public DefiLlama backend, no auth. Use it as a pool TVL aggregator, total-liquidity-per-token lookup, or on-chain liquidity audit.

INPUTrequest schema
propertytypedescriptionreq?
token_addressstring0x-prefixed 20-byte ERC-20 contract address.required
chainstringEVM chain. Default 'base'.
enum: base · ethereum · polygon · arbitrum · optimism
optional
OUTPUTresponse shape
fieldtypedescription
token_addressstringERC-20 contract address queried, lowercased hex.
chainstringChain the token lives on (ethereum, base, polygon, arbitrum, or optimism).
pool_countstringNumber of DefiLlama-tracked yield pools holding this token on the chain.
total_liquidity_usdstringSum of TVL in USD across every matched pool.
poolsstringArray of pools with project, symbol, TVL in USD, and APY for each.
top_poolstringDeepest single pool by TVL, with project name, symbol, and USD depth.
sourcestringUpstream data provider, always defillama for this endpoint.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/dex-liquidity-depth \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the dex-liquidity-depth tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-marketdefiliquidity-depthpool-tvltoken-liquiditydex-aggregatordefillama
methods
POST
cluster
edgemarket
price
$0.01 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
contract-sourceReturns verified source code and ABI for any deployed contract on Ethereum, Base, Optimism, Arbitrum, or Polygon.$0.01
contract-source-verifiedFetches verified contract source code and ABI for a deployed contract on Ethereum, Optimism, Polygon, Base, or Arbitrum.$0.01
eth-logsReads on-chain event logs with generic eth_getLogs queries across Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC via public no-auth…$0.01
lp-lock-checkChecks whether an LP token's liquidity is locked, useful for detecting rug-pull risk before swapping into a new pair.$0.01
nft-floorGets an NFT collection's floor price and recent sales via Reservoir.$0.01
agent-card-resolveResolves an ERC-8004 agentId to its on-chain owner, agentURI, and agent card JSON.$0.005
arbitrage-spreadFinds the cross-exchange arbitrage spread for any CoinGecko-listed coin.$0.005
basename-resolveResolves Coinbase Basenames (.base.eth) to Ethereum addresses and back, reading the Base mainnet L2 Resolver on-chain (no gas, no wallet).$0.005
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org