accountBalanceByAddress method
Return the /account/balance response for the specified account. @param {string} accountAddress The account address to get the balance of. @returns {Promise<any>} The response body that was provided by the server. @private
Implementation
Future<rosetta.AccountBalanceResponse> accountBalanceByAddress(
String accountAddress,
) async {
assert(networkIdentifier != null, 'Cannot get networkIdentifier.');
final result = await request('/account/balance', {
'network_identifier': networkIdentifier,
'account_identifier': {'address': accountAddress},
});
return rosetta.AccountBalanceResponse.fromJson(result);
}