Reset device

Perform device setup and generate new seed.

const result = await TrezorConnect.resetDevice(params);

Params

**Optional common params**

  • 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

TrezorConnect.resetDevice({
    label: 'My fancy Trezor',
});

Result

{
    success: true,
    payload: {
        message: 'Device successfully initialized'
    }
}

Error

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