estimateFees method

Future<Map?> estimateFees(
  1. Map txInfo,
  2. String params, {
  3. String? jsApi,
})

Implementation

Future<Map?> estimateFees(Map txInfo, String params, {String? jsApi}) async {
  dynamic res = await serviceRoot.webView!.evalJavascript(
    'keyring.txFeeEstimate(${jsApi ?? 'api'}, ${jsonEncode(txInfo)}, $params)',
  );
  return res;
}