This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
In Custodial Wallet, you can query the wallet balance using the Get Account Details , where the balance of each type of coin will be returned in the balance field of the response.
Note that because Cobo will automatically aggregate funds in deposit addresses, the balance in a deposit address may not reflect the actual balance of the selected type of coin.
In Custodial Wallet, tokens deposited into these addresses will undergo automated aggregation (token sweep) by Cobo. You are exempt from the necessity to pre-fund or fund transaction fees for your deposit addresses. This translates into substantial savings in both development and operational efforts for your team.
Copy
from cobo_custody.client import Clientfrom cobo_custody.config import DEV_ENVfrom cobo_custody.signer.local_signer import LocalSignerapi_secret = "your_api_secret" # your wallet api secret# init cobo clientclient = Client(signer=LocalSigner(api_secret), env=DEV_ENV, debug=False)# get account balanceresponse = client.get_account_info()print(f"Account balance: {response.result}")