Skip to main content
GET
/
wallets
/
exchanges
/
{exchange_id}
/
assets
/
{asset_id}
/
chains
import cobo_waas2
from cobo_waas2.models.chain_info import ChainInfo
from cobo_waas2.models.exchange_id import ExchangeId
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.WalletsExchangeWalletApi(api_client)
    exchange_id = cobo_waas2.ExchangeId()
    asset_id = "USDT"

    try:
        # List supported chains
        api_response = api_instance.list_supported_chains_for_exchange(
            exchange_id, asset_id
        )
        print(
            "The response of WalletsExchangeWalletApi->list_supported_chains_for_exchange:\n"
        )
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling WalletsExchangeWalletApi->list_supported_chains_for_exchange: %s\n"
            % e
        )

[
  {
    "chain_id": "ETH",
    "symbol": "ETH",
    "icon_url": "https://d.cobo.com/public/logos/ETH.png",
    "chain_identifier": "ETH",
    "explorer_tx_url": "https://etherscan.io/tx/{txn_id}",
    "explorer_address_url": "https://etherscan.io/address/{address}",
    "require_memo": false,
    "confirming_threshold": 15,
    "coinbase_maturity": 15
  }
]
import cobo_waas2
from cobo_waas2.models.chain_info import ChainInfo
from cobo_waas2.models.exchange_id import ExchangeId
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.WalletsExchangeWalletApi(api_client)
    exchange_id = cobo_waas2.ExchangeId()
    asset_id = "USDT"

    try:
        # List supported chains
        api_response = api_instance.list_supported_chains_for_exchange(
            exchange_id, asset_id
        )
        print(
            "The response of WalletsExchangeWalletApi->list_supported_chains_for_exchange:\n"
        )
        pprint(api_response)
    except Exception as e:
        print(
            "Exception when calling WalletsExchangeWalletApi->list_supported_chains_for_exchange: %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

exchange_id
enum<string>
required

The ID of the exchange. Possible values include:

  • binance: Binance.
  • okx: OKX.
  • deribit: Deribit.
  • bybit: Bybit.
  • gate: Gate.io
  • bitget: Bitget
  • bitmart: BitMart
  • bitfinex: Bitfinex
Available options:
binance,
okx,
deribit,
bybit,
gate,
bitget,
bitmart,
bitfinex
Example:

"binance"

asset_id
string
required

(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. You can get the ID of the assets supported by an exchanges by calling List supported assets.

Response

The request was successful.

chain_id
string
required

The chain ID, which is the unique identifier of a blockchain.

Example:

"ETH"

symbol
string

The chain symbol for display purposes, which is the abbreviated name of a chain.

Example:

"ETH"

icon_url
string

The URL of the chain icon.

Example:

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

chain_identifier
string

A functional identifier used to group blockchains with similar execution logic. For example, ETH for all EVM-compatible chains (Ethereum, BNB Smart Chain, Polygon).

Example:

"ETH"

explorer_tx_url
string

The transaction URL pattern on the blockchain explorer. You can use it to concatenate the transaction URLs.

Example:

"https://etherscan.io/tx/{txn_id}"

explorer_address_url
string

The address URL pattern on the blockchain explorer. You can use it to concatenate the address URLs.

Example:

"https://etherscan.io/address/{address}"

require_memo
boolean

Whether the chain requires a memo.

Example:

false

confirming_threshold
integer

The number of confirmations required for an on-chain transaction, such as 64 for Ethereum.

Example:

15

coinbase_maturity
integer

The number of confirmations required before a coinbase transaction is considered mature and can be spent, for example, 100 confirmations for BTC.

Example:

15