Skip to main content
GET
/
tokenization
/
tokens
/
{token_id}
import cobo_waas2
from cobo_waas2.models.tokenization_token_detail_info import TokenizationTokenDetailInfo
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.TokenizationApi(api_client)
    token_id = "ETH_USDT"

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

{
  "token_id": "ETH_CUSD2",
  "chain_id": "ETH",
  "token_address": "0x1234567890123456789012345678901234567890",
  "token_name": "CUSD",
  "token_symbol": "CUSD",
  "decimals": 18,
  "token_access_activated": false,
  "status": "Active",
  "total_supply": "133399",
  "holdings": "12399",
  "permissions": [
    {
      "execution_address": "0x0406db8351aa6839169bb363f63c2c808fee8f99",
      "permissions": [
        "UpgradeContract",
        "PauseContract"
      ],
      "created_timestamp": 1610445878970
    }
  ]
}
import cobo_waas2
from cobo_waas2.models.tokenization_token_detail_info import TokenizationTokenDetailInfo
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.TokenizationApi(api_client)
    token_id = "ETH_USDT"

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

Successfully retrieved token information.

token_id
string
required

The unique token identifier.

Example:

"ETH_CUSD2"

chain_id
string
required

The chain ID of the tokenization contract.

Example:

"ETH"

token_symbol
string
required

The unique token symbol.

Example:

"CUSD"

decimals
integer
required

The number of decimals of the token.

Example:

18

status
enum<string>
required

The status of the token.

Available options:
Processing,
Active,
Failed,
Pausing
Example:

"Active"

token_address
string

The address of the token contract.

Example:

"0x1234567890123456789012345678901234567890"

token_name
string

The name of the token.

Example:

"CUSD"

token_access_activated
boolean

Whether the allowlist feature is activated for the token.

Example:

false

total_supply
string

The total supply of the token.

Example:

"133399"

holdings
string

The amount of tokens held by the organization.

Example:

"12399"

permissions
object[]

List of execution addresses and their permissions.