approveRequest method

Future approveRequest({
  1. required int id,
  2. required String result,
})

Approves a pending request responding with a hex encoded string https://docs.walletconnect.com/client-api#approve-call-request

Implementation

Future approveRequest({
  required int id,
  required String result,
}) async {
  final response = JsonRpcResponse(
    id: id,
    result: result,
  );

  return _sendResponse(response);
}