Documentation Index
Fetch the complete documentation index at: https://docs.codex.io/llms.txt
Use this file to discover all available pages before exploring further.
Returns
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).ApeCoin.APE.Show Properties
Show Properties
A+, B-).ApeCoin.APE.A+, B-).Show Properties
Show Properties
protocol, company).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
address:id).Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).ApeCoin.APE.Show Properties
Show Properties
A+, B-).ApeCoin.APE.A+, B-).Show Properties
Show Properties
protocol, company).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
address:id).Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).token0.token1.Show Properties
Show Properties
address:networkId).ApeCoin.APE.Show Properties
Show Properties
A+, B-).ApeCoin.APE.A+, B-).Show Properties
Show Properties
protocol, company).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
address:id).Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).ApeCoin.APE.Show Properties
Show Properties
A+, B-).ApeCoin.APE.A+, B-).Show Properties
Show Properties
protocol, company).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
token, stablecoin).Show Properties
Show Properties
ERC20, SPL).Show Properties
Show Properties
address:id).Show Properties
Show Properties
Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
address:networkId).Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
Show Properties
address:id).token0 or token1.
See QuoteTokenArguments
Example
Test this query in the Explorer →{
listPairsWithMetadataForToken(
tokenAddress: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"
networkId: 1
limit: 5
) {
results {
volume
liquidity
quoteToken
token {
address
name
symbol
networkId
}
backingToken {
address
name
symbol
networkId
}
pair {
address
id
networkId
fee
protocol
}
exchange {
name
iconUrl
tradeUrl
}
}
}
}
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?
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?
How do I get price data for these pairs?
How do I get price data for these pairs?
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?
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