getAssetBalances<T> method
returns balances in the same order as scripthashes passed in
Implementation
Future<List<T>> getAssetBalances<T>(List<String> scripthashes) async {
var futures = <Future>[];
var results;
peer.withBatch(() {
for (var scripthash in scripthashes) {
futures.add(getAssetBalance(scripthash));
}
});
results = await Future.wait(futures);
return results;
}