Skip to main content
GET
/
wallets
/
chains
/
{chain_id}
import cobo_waas2
from cobo_waas2.models.chain_info import ChainInfo
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)
    chain_id = "ETH"

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

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

chain_id
string
required

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

Response

The request was successful.

The chain information.

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