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.
from cobo_custody.client import Client
from cobo_custody.config import DEV_ENV
from cobo_custody.signer.local_signer import LocalSigner

api_secret = "your_api_secret"  # your wallet api secret
# init cobo client
client = Client(signer=LocalSigner(api_secret), env=DEV_ENV, debug=False)

# get account balance
response = client.get_account_info()
print(f"Account balance: {response.result}")



In MPC Wallet, you can query the balance of each address using the Get Balances List up to 50 addresses.

from cobo_custody.config import DEV_ENV
from cobo_custody.signer.local_signer import LocalSigner
from cobo_custody.client.mpc_client import MPCClient

api_secret = "your api secret"  # your wallet api secret

# init cobo client
mpc_client = MPCClient(signer=LocalSigner(api_secret), env=DEV_ENV, debug=False)

# get balance list
response = client.list_balances("ETH",0,50)
print(f"Address History: {response.result}")

Transactional APIs can be used to retrieve your deposit and withdraw history for account reconciliation. Please refer to article for more information.