getMemos method

Future<List<String>> getMemos(
  1. List<String> txids
)

returns memos in the same order as txHashes passed in

Implementation

Future<List<String>> getMemos(List<String> txids) async {
  var futures = <Future<String>>[];
  if (txids.isNotEmpty) {
    peer.withBatch(() {
      for (var txid in txids) {
        futures.add(getMemo(txid));
      }
    });
  }
  List<String> results = await Future.wait<String>(futures);
  return results;
}