Wallet Module

Wallet module handles operations related to wallet creation and balance retrieval.

To learn more about how to use the AI Agent SDK to interact with the wallet module, please visit AI Agent SDK Wallet Management.

1.1 Create Wallet

Creates a new wallet

Function Name

create_wallet
  • Example Code

    from crypto_com_developer_platform_client import Wallet
    
    wallet = Wallet.create_wallet()
    print(wallet)

1.2 Get Wallet Balance

Retrieves the balance of the wallet for a specific address.

Function Name

get_balance
  • Arguments

    wallet_address (str): The address to get the balance for (CronosIds with the `.cro` suffix are supported, e.g. `xyz.cro`)
  • Example Code

    from crypto_com_developer_platform_client import Wallet
    
    balance = Wallet.get_balance('example-wallet')
    print(balance)

Last updated

Was this helpful?