deviceSettings

Device settings

It is recommended to modify only one property when using it, as it needs to be confirmed on the device.

const result = await HardwareSDK.deviceSettings(connectId, params);

Params

Optional common params

  • languageoptional string Device language, ISO 639-1 codes

  • labeloptional string Device name

  • usePassphraseoptional boolean Open passphrase or not

  • homescreenoptional string Change homescreen by hex string

  • autoLockDelayMsoptional number Auto lock time in ms

  • displayRotationoptional number In degrees from North

  • passphraseAlwaysOnDeviceoptional boolean Do not prompt for passphrase, enforce device entry

  • safetyChecksoptional string Safety check level, set to Prompt to limit path namespace enforcement

    0: Strict
    1: PromptAlways
    2: PromptTemporarily
  • experimentalFeaturesoptional boolean Enable experimental message types

Example

HardwareSDK.deviceSettings(connectId, {
    label: 'My OneKey Wallet'
});

Result

{
    success: true,
    payload: {
        message: string
    }
}

Error

{
    success: false,
    payload: {
        error: string, // error message
        code: number // error code
    }
}

Last updated