Returns
ListPairsForTokenResponse!
Arguments
Int
The maximum number of pairs to return.
Int!
required
The network ID the token is deployed on.
String!
required
The contract address of the token.
Example
Test this query in the Explorer →Usage Guidelines
- Query using
tokenAddress(contract address) andnetworkId(chain ID) - Returns up to 250 pairs (default 10). Larger
limitvalues return 250. - Results are not sorted by liquidity, so sort by
liquidityyourself to find the main pair. tokenis always the token you queried (tokenAddress)backingTokenis the other token in the pair (for example WETH or USDC)quoteTokenindicates 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 always the token you queried (tokenAddress), and backingToken is the other token in the pair (for example WETH or USDC). This tells you 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.Related Recipes
- Detailed Token Page: Build a comprehensive token detail page with price, holders, trades, and real-time updates