getPrivacy method

Future<Result<AccountPrivacyRulesBase>> getPrivacy({
  1. required InputPrivacyKeyBase key,
})

Get Privacy.

ID: dadbc950.

Implementation

Future<Result<AccountPrivacyRulesBase>> getPrivacy({
  required InputPrivacyKeyBase key,
}) async {
  // Preparing the request.
  final request = AccountGetPrivacy(
    key: key,
  );

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

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