getAllBalance method

Future<List<CoinBalance>> getAllBalance(
  1. String owner
)

Implementation

Future<List<CoinBalance>> getAllBalance(String owner) async {
  final result = await client.request(
    'suix_getAllBalances',
    [owner]
  );
  List<CoinBalance> list = [];
  for (var coin in result) {
    list.add(CoinBalance.fromJson(coin));
  }
  return list;
}