getTransactions method

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

returns histories in the same order as txHashes passed in

Implementation

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