Copy
Ask AI
import cobo_waas2
from cobo_waas2.models.create_wallet_params import CreateWalletParams
from cobo_waas2.models.created_wallet_info import CreatedWalletInfo
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)
create_wallet_params = cobo_waas2.CreateWalletParams()
try:
# Create wallet
api_response = api_instance.create_wallet(
create_wallet_params=create_wallet_params
)
print("The response of WalletsApi->create_wallet:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WalletsApi->create_wallet: %s\n" % e)
