confirmPayload method

Future<Map> confirmPayload(
  1. int id,
  2. bool approve,
  3. String password,
  4. Map gasOptions,
)

Implementation

Future<Map> confirmPayload(
    int id, bool approve, String password, Map gasOptions) async {
  final Map? res = await serviceRoot.webView!.evalJavascript(
      'walletConnect.confirmCallRequest($id, $approve, "$password", ${jsonEncode(gasOptions)})');
  return res ?? {};
}