Skip to main content
GET
/
wallets
/
tokens
/
{token_id}
import cobo_waas2
from cobo_waas2.models.extended_token_info import ExtendedTokenInfo
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.WalletsApi(api_client)
    token_id = "ETH_USDT"

    try:
        # Get token information
        api_response = api_instance.get_token_by_id(token_id)
        print("The response of WalletsApi->get_token_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling WalletsApi->get_token_by_id: %s\n" % e)

{
  "can_deposit": true,
  "can_withdraw": true,
  "token_id": "ETH_USDT",
  "chain_id": "ETH",
  "asset_id": "USDT",
  "symbol": "USDT",
  "name": "Tether USDT",
  "decimal": 18,
  "icon_url": "https://d.cobo.com/public/logos/USDT.png",
  "token_address": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
  "fee_token_id": "ETH",
  "dust_threshold": "0.00000546",
  "custodial_minimum_deposit_threshold": "0.0001",
  "asset_model_type": "Account"
}
import cobo_waas2
from cobo_waas2.models.extended_token_info import ExtendedTokenInfo
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.WalletsApi(api_client)
    token_id = "ETH_USDT"

    try:
        # Get token information
        api_response = api_instance.get_token_by_id(token_id)
        print("The response of WalletsApi->get_token_by_id:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling WalletsApi->get_token_by_id: %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.

Path Parameters

token_id
string
required

The token ID, which is the unique identifier of a token.

Response

The request was successful.

The token information, including whether the token can be deposited or withdrawn. The token information.

token_id
string
required

The token ID, which is the unique identifier of a token.

Example:

"ETH_USDT"

chain_id
string
required

The ID of the chain on which the token operates.

Example:

"ETH"

can_deposit
boolean
default:false

Whether the token can be deposited.

  • true: The token can be deposited.

  • false: The token cannot be deposited.

Whether deposits are enabled for this token.

Example:

true

can_withdraw
boolean
default:false

Whether the token can be withdrawn.

  • true: The token can be withdrawn.

  • false: The token cannot be withdrawn.

Whether withdrawals are enabled for this token.

Example:

true

asset_id
string

(This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.

Example:

"USDT"

symbol
string

The token symbol, which is the abbreviated name of a token.

Example:

"USDT"

name
string

The token name, which is the full name of a token.

Example:

"Tether USDT"

decimal
integer

The token decimal.

Example:

18

icon_url
string

The URL of the token icon.

Example:

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

token_address
string

The token address, if applicable.

Example:

"0xdAC17F958D2ee523a2206206994597C13D831ec7"

fee_token_id
string

The fee token ID. A fee token is the token with which you pay transaction fees.

Example:

"ETH"

dust_threshold
string

The minimum withdrawal amount for Custodial Wallets. If your withdrawal amount is smaller than this threshold, the withdrawal request will receive an error.

Note: Cobo Loop transfers do not have this limitation.

Example:

"0.00000546"

custodial_minimum_deposit_threshold
string

The minimum deposit amount for Custodial Wallets. If the amount you deposit to a Custodial Wallet is smaller than this threshold, the deposit will not show up on Cobo Portal or trigger any webhook events.

Note: Cobo Looptransfers do not have this limitation.

Example:

"0.0001"

asset_model_type
enum<string>

The asset model type. Possible values include:

  • Account: The account model. This model tracks the balances of user accounts, similar to the traditional banking system.

  • UTXO: The UTXO model. This model tracks individual outputs of a transaction rather than account balances. Each transaction consists of inputs (previous UTXOs) and outputs (new UTXOs).

Available options:
Account,
UTXO
Example:

"Account"