changeAuthorizationSettings method

Future<Result<Boolean>> changeAuthorizationSettings({
  1. required bool confirmed,
  2. required int hash,
  3. required bool encryptedRequestsDisabled,
  4. required bool callRequestsDisabled,
})

Change Authorization Settings.

ID: 40f48462.

Implementation

Future<Result<Boolean>> changeAuthorizationSettings({
  required bool confirmed,
  required int hash,
  required bool encryptedRequestsDisabled,
  required bool callRequestsDisabled,
}) async {
  // Preparing the request.
  final request = AccountChangeAuthorizationSettings(
    confirmed: confirmed,
    hash: hash,
    encryptedRequestsDisabled: encryptedRequestsDisabled,
    callRequestsDisabled: callRequestsDisabled,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}