Get available tokens

Learn how to list available tokens

Description

Sentry supports hundred of tokens. To list available tokens, search for specific tokens and get data on this tokens, the following route can be used.

Endpoint

GET https://sentry.aleno.ai/tokens

Query parameters

NamerequiredTypeDescription

chainId

required

string

ID of target chain

addresses

optional

string list

Target token addresses (should be in lower case). If provided, only tokens matching the target token addresses will be returned. If not provided, all available tokens will be returned.

To get all tokens, simply remove the query parameter: GET /users

Payload

No payload.

CURL example

curl -X GET \
  'https://sentry.aleno.ai/tokens?chainId=eth&addresses=0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2,0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b' \
  -H 'accept: application/json'

Result

Returns list of Token objects supported on Sentry.

{
    "data": [
        {
            "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
            "name": "Wrapped Ether",
            "symbol": "WETH",
            "decimals": 18,
            "isTracked": true,
            "chainId": "eth"
        },
        {
            "address": "0x4e3fbd56cd56c3e72c1403e103b45db9da5b9d2b",
            "name": "Convex Token",
            "symbol": "CVX",
            "decimals": 18,
            "isTracked": true,
            "chainId": "eth"
        }
    ]
}

Last updated