Skip to main content
GET
/
tokenization
/
activities
/
{activity_id}
import cobo_waas2
from cobo_waas2.models.tokenization_activity_info import TokenizationActivityInfo
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)
    activity_id = "b7c8e9d0-f1a2-3b4c-5d6e-7f8a9b0c1d2e"

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

{
  "activity_id": "b7c8e9d0-f1a2-3b4c-5d6e-7f8a9b0c1d2e",
  "token_id": "BTC",
  "type": "Issue",
  "status": "Processing",
  "source": {
    "source_type": "Org-Controlled",
    "wallet_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
    "address": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
  },
  "initiator": "steve@example.com",
  "initiator_type": "API",
  "transaction_ids": [
    "0011039d-27fb-49ba-b172-6e0aa80e37ec"
  ],
  "created_timestamp": 1678886400000,
  "updated_timestamp": 1678886400000
}
import cobo_waas2
from cobo_waas2.models.tokenization_activity_info import TokenizationActivityInfo
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)
    activity_id = "b7c8e9d0-f1a2-3b4c-5d6e-7f8a9b0c1d2e"

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

activity_id
string<uuid>
required

The ID of the activity.

Response

Successfully retrieved Activity details.

activity_id
string<uuid>
required

The ID of the activity.

Example:

"b7c8e9d0-f1a2-3b4c-5d6e-7f8a9b0c1d2e"

token_id
string
required

The token ID.

Example:

"BTC"

type
enum<string>
required

The type of tokenization operation.

Available options:
Issue,
Mint,
Burn,
Pause,
Unpause,
UpdateAllowlistAddresses,
UpdateBlocklistAddresses,
ToggleAllowlist,
ContractCall
Example:

"Issue"

status
enum<string>
required

The status of the tokenization activity.

Available options:
Processing,
Success,
Failed
source
object
required
  • MPC Wallets
  • Web3
initiator
string
required

The initiator of the activity.

Example:

"steve@example.com"

initiator_type
enum<string>
required

The transaction initiator type. Possible values include:

  • API: An API initiator, who initiates the transaction by using the WaaS API.
  • Web: An web initiator, who initiates the transaction from Cobo Portal.
  • App: An App initiator, who initiates the transaction from Cobo Portal Apps.
  • External: An external initiator, who initiates the transaction outside Cobo.
Available options:
API,
Web,
App,
External
Example:

"API"

transaction_ids
string[]
required

The IDs of the corresponding transactions of the activity.

created_timestamp
integer
required

The creation timestamp of the activity in milliseconds since the Unix epoch.

Example:

1678886400000

updated_timestamp
integer
required

The last update timestamp of the activity in milliseconds since the Unix epoch.

Example:

1678886400000