getTokenBalance method

Future<List?> getTokenBalance(
  1. String address,
  2. List<String> contractAddresses
)

Implementation

Future<List?> getTokenBalance(
    String address, List<String> contractAddresses) async {
  final List? res = await serviceRoot.webView!.evalJavascript(
      'eth.account.getTokenBalance("$address", ${jsonEncode(contractAddresses)})');
  return res;
}