getMetas method

Future<List<AssetMeta?>> getMetas(
  1. List<String> symbols
)

returns histories in the same order as txHashes passed in

Implementation

Future<List<AssetMeta?>> getMetas(List<String> symbols) async {
  var futures = <Future<AssetMeta?>>[];
  if (symbols.isNotEmpty) {
    peer.withBatch(() {
      for (var symbol in symbols) {
        futures.add(getMeta(symbol));
      }
    });
  }
  List<AssetMeta?> results = await Future.wait<AssetMeta?>(futures);
  return results;
}