Skip to main content
GET
/
payments
/
supported_tokens
import cobo_waas2
from cobo_waas2.models.supported_token import SupportedToken
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.PaymentApi(api_client)

    try:
        # List supported tokens
        api_response = api_instance.list_payment_supported_tokens()
        print("The response of PaymentApi->list_payment_supported_tokens:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling PaymentApi->list_payment_supported_tokens: %s\n" % e
        )

[
  {
    "token_id": "ETH_USDT",
    "name": "Tether USD",
    "symbol": "USDT",
    "decimal": 6,
    "token_address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
    "chain_id": "ETH",
    "chain_symbol": "ETH",
    "chain_icon_url": "https://d.cobo.com/public/logos/ETH.png",
    "token_icon_url": "https://d.cobo.com/public/logos/USDT.png",
    "can_off_ramp": true
  }
]
import cobo_waas2
from cobo_waas2.models.supported_token import SupportedToken
from cobo_waas2.rest import ApiException
from pprint import pprint

# See configuration.py for a list of all supported configurations.
configuration = cobo_waas2.Configuration(
    # Replace `<YOUR_PRIVATE_KEY>` with your private key
    api_private_key="<YOUR_PRIVATE_KEY>",
    # Select the development environment. To use the production environment, change the URL to https://api.cobo.com/v2.
    host="https://api.dev.cobo.com/v2",
)
# Enter a context with an instance of the API client
with cobo_waas2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = cobo_waas2.PaymentApi(api_client)

    try:
        # List supported tokens
        api_response = api_instance.list_payment_supported_tokens()
        print("The response of PaymentApi->list_payment_supported_tokens:\n")
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling PaymentApi->list_payment_supported_tokens: %s\n" % e
        )

Authorizations

BIZ-API-KEY
string
header
required

The API key. For more details, refer to API key.

In the API playground, enter your API secret, and your API key will be accordingly calculated.

Response

The request was successful.

token_id
string
required

The unique identifier of the token, in the format of {chain_id}_{token_symbol}.

Example:

"ETH_USDT"

name
string
required

The full name of the token.

Example:

"Tether USD"

symbol
string
required

The symbol of the token.

Example:

"USDT"

decimal
integer
required

The number of decimal places for the token. This value is used to convert between the token's smallest unit and its display value.

Example:

6

token_address
string | null
required

The contract address of the token. This is null for native coins (e.g., ETH on Ethereum).

Example:

"0xdac17f958d2ee523a2206206994597c13d831ec7"

chain_id
string
required

The ID of the chain on which the token exists.

Example:

"ETH"

chain_symbol
string | null
required

The symbol of the chain on which the token exists.

Example:

"ETH"

chain_icon_url
string | null

The URL of the chain icon image.

Example:

"https://d.cobo.com/public/logos/ETH.png"

token_icon_url
string | null

The URL of the token icon image.

Example:

"https://d.cobo.com/public/logos/USDT.png"

can_off_ramp
boolean

Whether the token supports fiat off-ramp.

  • true: The token can be used for fiat off-ramp.
  • false: The token cannot be used for fiat off-ramp.