getTransactions method

Future<List<Tx>> getTransactions(
  1. List<String> txHashes
)

returns histories in the same order as txHashes passed in

Implementation

Future<List<Tx>> getTransactions(List<String> txHashes) async {
  var futures = <Future<Tx>>[];
  peer.withBatch(() {
    for (var txHash in txHashes) {
      futures.add(getTransaction(txHash));
    }
  });
  List<Tx> results = await Future.wait<Tx>(futures);
  return results;
}