Method testing tool
Recover device
🚫
Management command - this method is restricted to Trezor.io and can't be used in 3rd party applications.
type: NormalRecovery
This mode lets the user recover an existing BIP39 seed into an empty Trezor device.
type: DryRun
In dry run recovery, the process is used to check the validity of the recovery phrase with an already initialized device.
type: UnlockRepeatedBackup
In this mode, the user can unlock a device into a mode where it's possible to repeat the backup process. This is useful for upgrading SLIP39 backups to multiple shares.
const result = await TrezorConnect.recoveryDevice(params);
Params
Including CommonParams
Example
TrezorConnect.recoveryDevice({
device,
});
Result
Success type
{
success: true,
payload: {
message: 'Device recovered'
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}