getCurrencyBalance method

Future<List<Holding>> getCurrencyBalance(
  1. String code,
  2. String account, [
  3. String? symbol
])

Get AMAX account info form the given account name

Implementation

Future<List<Holding>> getCurrencyBalance(String code, String account,
    [String? symbol]) async {
  return this._post('/chain/get_currency_balance',
      {'code': code, 'account': account, 'symbol': symbol}).then((balance) {
    return (balance as List).map((e) => new Holding.fromJson(e)).toList();
  });
}