Display requested address derived by given BIP32 path on device and returns it to caller. User is presented with a description of the requested key and asked to confirm the export on Trezor.
ES6
const result = await TrezorConnect.liskGetAddress(params);
CommonJS
TrezorConnect.liskGetAddress(params).then(function(result) {
});
path
— obligatorystring | Array<number>
minimum length is3
. read moreshowOnTrezor
— optionalboolean
determines if address will be displayed on device. Default is set totrue
bundle
-Array
of Objects withpath
andshowOnTrezor
fields
Display address of first Lisk account:
TrezorConnect.liskGetAddress({
path: "m/44'/134'/0'/0'/0'"
});
Return a bundle of Lisk addresses without displaying them on device:
TrezorConnect.liskGetAddress({
bundle: [
{ path: "m/44'/134'/0'/0'/0'", showOnTrezor: false }, // account 1
{ path: "m/44'/134'/0'/0'/1'", showOnTrezor: false }, // account 2
{ path: "m/44'/134'/0'/0'/2'", showOnTrezor: false } // account 3
]
});
Result with only one address
{
success: true,
payload: {
address: string, // displayed address
path: Array<number>, // hardended path
serializedPath: string,
}
}
Result with bundle of addresses sorted by FIFO
{
success: true,
payload: [
{ address: string, path: Array<number>, serializedPath: string }, // account 1
{ address: string, path: Array<number>, serializedPath: string }, // account 2
{ address: string, path: Array<number>, serializedPath: string } // account 3
]
}
Error
{
success: false,
payload: {
error: string // error message
}
}