queryActiveRecoveryAttempts method

Future<List?> queryActiveRecoveryAttempts(
  1. String address,
  2. List<String> addressNew
)

Implementation

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