deviceReset

Reset device

Perform device setup and generate new seed.

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

Params

Optional common params

  • displayRandomoptional boolean. Display entropy generated by the device before asking for additional entropy.

  • strengthoptional number Accepted values are [128|192|256]. Default is set to 256

  • labeloptional string

  • u2fCounteroptional number. Default value is set to current time stamp in seconds.

  • pinProtectionoptional boolean

  • passphraseProtectionoptional boolean

  • skipBackupoptional boolean

  • noBackupoptional boolean create a seedless device

Example

HardwareSDK.resetDevice(connectId, {
    label: 'OneKey Classic',
});

Result

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

Error

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

Last updated