queryRecoverableList method
Implementation
Future<List> queryRecoverableList(List<String> addresses) async {
final queries =
addresses.map((e) => 'api.query.recovery.recoverable("$e")').toList();
final dynamic ls = await serviceRoot.webView!
.evalJavascript('Promise.all([${queries.join(',')}])');
final res = [];
ls.asMap().forEach((k, v) {
if (v != null) {
v['address'] = addresses[k];
}
res.add(v);
});
return res;
}