Perform device setup and generate new seed.
const result = await HardwareSDK.resetDevice(connectId, params);
displayRandom
— optionalboolean
. Display entropy generated by the device before asking for additional entropy.strength
— optionalnumber
Accepted values are [128|192|256]. Default is set to256
label
— optionalstring
u2fCounter
— optionalnumber
. Default value is set to current time stamp in seconds.pinProtection
— optionalboolean
passphraseProtection
— optionalboolean
skipBackup
— optionalboolean
noBackup
— optionalboolean
create a seedless device
HardwareSDK.resetDevice(connectId, {
label: 'OneKey Classic',
});
{
success: true,
payload: {
message: string
}
}
Error
{
success: false,
payload: {
error: string, // error message
code: number // error code
}
}