getTransactionsFutures method

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

Implementation

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