Skip to main content

getAllTokenPairs

Fetches the full list of token pairs on Angstrom.

warning

This method is only available through the data endpoint.

Parameters

ParameterTypeDescription
block_numbernumber?(optional) Block height to fetch the configuration at (defaults to latest)

Result

Array<TokenPair> — Returns an array of objects, each containing:

FieldTypeDescription
token0stringThe first token’s address
token1stringThe second token’s address

Request

curl "https://api.data.angstrom.xyz" \
-X POST -H "Content-Type: application/json" -d '
{
"jsonrpc":"2.0",
"id":1,
"method":"angstrom_allTokenPairs",
"params":[]
}
'