API Reference

This method allows you to retrieve user-specific settings and account information, such as whether the user is in secured mode, the edge node they are using, and more.

try {
  const data = await sdk.settings.read();

  if (!data) {
    console.error("Failed to retrieve user settings:", error);
  } else {
    console.log("User Settings:", data);
  }
} catch (error) {
  console.error(
    "An unexpected error occurred while retrieving user settings:",
    error.message
  );
}