queryAssetsBalances method

Future<List> queryAssetsBalances(
  1. List<String> ids,
  2. String address
)

Implementation

Future<List> queryAssetsBalances(List<String> ids, String address) async {
  final List res = await serviceRoot.webView!.evalJavascript('Promise.all(['
      '${ids.map((e) => 'api.query.assets.account($e, "$address")').join(',')}'
      '])');
  return res;
}