getBalanceBatch method
Implementation
Future<List<CoinBalance>> getBalanceBatch(List<String> owner,
{String coinType = "0x2::sui::SUI"}) async {
final requests = owner.map((d) => ({
'method': 'suix_getBalance',
'args': [d, coinType],
}));
var result = await client.batchRequest(requests);
List<CoinBalance> coins = [];
for(var coin in result) {
coins.add(CoinBalance.fromJson(coin));
}
return coins;
}