queryActiveRecoveries method

Future<List?> queryActiveRecoveries(
  1. List<String> addresses,
  2. String addressNew
)

Implementation

Future<List?> queryActiveRecoveries(
    List<String> addresses, String addressNew) async {
  List queries = addresses
      .map((e) => 'api.query.recovery.activeRecoveries("$e", "$addressNew")')
      .toList();
  final res = await serviceRoot.webView!
      .evalJavascript('Promise.all([${queries.join(',')}])');
  return res;
}