getAccountBalanceWithAdress method
Implementation
Future<String> getAccountBalanceWithAdress(String adress,
[bool testNetwork = true]) async {
final utxos = await getUTXOs(address: adress, testNetwork: testNetwork);
int satoshis = 0;
for (var utxo in utxos) {
satoshis += utxo["value"] as int;
}
final bitcoinAmount =
BitcoinFormatter.satoshiToBitcoin(satoshis.toString());
return bitcoinAmount;
}