Get the account CCC balance.
The Commercio SDK, our own open source tool to format transactions to Commercio.network
- Network queryChain.
- Execute the Network queryChain function to get the account balance.
Here's an example of the implementation in all the available languages.
final balanceURL =
'${wallet.networkInfo.lcdUrl}/bank/balances/${wallet.bech32Address}';
final balance = await Network.queryChain(balanceURL);
val balanceURL = "$lcdUrl/bank/balances/${wallet.bech32Address}"
val balance = network.queryChain<Any>(balanceURL)