Files
trezor-suite/docs/packages/connect/methods/unlockPath.md
2023-08-10 11:33:05 +02:00

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

Optional common params

  • pathrequired string | 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
    }
}