getAllTokenPairs
Fetches the full list of token pairs on Angstrom.
warning
This method is only available through the data endpoint.
Parameters
Parameter | Type | Description |
---|---|---|
block_number | number? | (optional) Block height to fetch the configuration at (defaults to latest) |
Result
Array<TokenPair>
— Returns an array of objects, each containing:
Field | Type | Description |
---|---|---|
token0 | string | The first token’s address |
token1 | string | The 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":[]
}
'