mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-24 08:07:15 +01:00
842 B
842 B
Unlock path
Ask device to unlock a subtree of the keychain.
Result is used in getPublicKey, getAddress and signTransaction methods to access requested keychain which is not available by default.
const result = await TrezorConnect.unlockPath(params);
⚠️ This feature is experimental! Do not use it in production!
:note: Supported only by T2T1 with Firmware 2.5.3 or higher!
Params
path— requiredstring | Array<number>prefix of the BIP-32 path leading to the account (m / purpose')
Result
{
success: true,
payload: {
address_n: Array<number>,
mac: string,
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}