signEthRequest method

Future<Map> signEthRequest(
  1. Map payload,
  2. String address,
  3. String pass,
  4. Map gasOptions,
)

Implementation

Future<Map> signEthRequest(
    Map payload, String address, String pass, Map gasOptions) async {
  final Map res = await serviceRoot.webView!.evalJavascript(
      'eth.keyring.signEthRequest(${jsonEncode(payload)}, "$address", "$pass", ${jsonEncode(gasOptions)})');
  return res;
}