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