getNativeTokenBalance method

Future<String> getNativeTokenBalance(
  1. String address
)

Implementation

Future<String> getNativeTokenBalance(String address) async {
  final String? res = await serviceRoot.webView!
      .evalJavascript('eth.account.getEthBalance("$address")');
  return res ?? '0';
}