Asks device to sign given transaction using the private key derived by given BIP32 path. User is asked to confirm all transaction details on Trezor.
ES6
const result = await TrezorConnect.liskSignTransaction(params);
CommonJS
TrezorConnect.liskSignTransaction(params).then(function(result) {
});
path
— obligatorystring | Array<number>
minimum length is3
. read moretransaction
- obligatoryObject
type of LiskTransaction
TrezorConnect.liskSignTransaction(
path: "m/44'/134'/0'/0'",
transaction: {
amount: "10000000",
recipientId: "9971262264659915921L",
timestamp: 57525937,
type: 0,
fee: "20000000",
asset: {
data: "Test data"
}
}
);
{
success: true,
payload: {
signature: string
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}