wipeDevice - 重置钱包到出厂状态
将设备重置到出厂状态,删除所有私有数据。
调用方法
ES6:
const result = await TrezorConnect.wipeDevice(params);
CommonJS:
TrezorConnect.wipeDevice(params).then(function(result) {
});
参数:
可选的公共参数:
- useEmptyPassphrase:设置为true
- allowSeedlessDevice:设置为true
示例代码
TrezorConnect.wipeDevice();
返回结果
{
success: true,
payload: {
message: 'Device wiped'
}
}
错误信息
{
success: false,
payload: {
error: string // error message
}
}