isSilentPayload method

bool isSilentPayload(
  1. JsonRpcRequest request
)

Check if the request is a silent payload.

Implementation

bool isSilentPayload(JsonRpcRequest request) {
  if (request.method.startsWith('wc_')) {
    return true;
  }

  if (signingMethods.contains(request.method)) {
    return false;
  }

  return true;
}