Skip to main content
GET
/
v1
/
token
/
list
Python (SDK)
from compass_api_sdk import CompassAPI, models


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.token.token_list(chain=models.V1TokenListChain.ARBITRUM)

    # Handle response
    print(res)
{
  "tokens": [
    {
      "address": "<string>",
      "decimals": 3,
      "name": "<string>",
      "symbol": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:arbitrum
required
Available options:
arbitrum,
base,
ethereum

Response

Successful Response

Response model for token list.

tokens
TokenConfig · object[]
required

List of known tokens

I