Usage Guidelines
- Query using
tokenAddress(contract address) andnetworkId(chain ID) - Results are sorted by liquidity, with the highest liquidity pairs first
tokencontains metadata for the higher-liquidity token in the pairbackingTokencontains metadata for the lower-liquidity token in the pairquoteTokenindicates which token (token0ortoken1) is the quote token for price calculations- Use the
exchangefield to get DEX information including trade URLs
Troubleshooting Tips
What's the difference between token and backingToken?
What's the difference between token and backingToken?
In each result,
token is the token with higher liquidity in the pair (typically the major/stable token like WETH, USDC), while backingToken is the token with lower liquidity (typically the token you’re querying for). This helps identify which side of the pair is which.How is this different from filterPairs?
How is this different from filterPairs?
listPairsWithMetadataForToken returns pairs for a specific token with rich metadata including exchange info. filterPairs is more flexible for searching across all pairs with various filters but returns less detailed metadata per result.Why are some pairs missing?
Why are some pairs missing?
Only pairs with sufficient liquidity and trading activity are indexed. Very new pairs or those with minimal liquidity may not appear immediately.
How do I get price data for these pairs?
How do I get price data for these pairs?
This query returns liquidity and volume but not current prices. Use
pairMetadata with the pair ID from the results to get detailed price and stats data.Can I filter by exchange?
Can I filter by exchange?
This query returns all pairs for a token across all exchanges. To filter by specific exchanges, use
filterPairs with the exchangeAddress filter instead.