Skip to content

Latest commit

 

History

History
59 lines (52 loc) · 1.24 KB

liskSignTransaction.md

File metadata and controls

59 lines (52 loc) · 1.24 KB

Lisk: Sign transaction

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) {

});

Params

Optional common params

  • pathobligatory string | Array<number> minimum length is 3. read more
  • transaction - obligatory Object type of LiskTransaction

Example

TrezorConnect.liskSignTransaction(
    path: "m/44'/134'/0'/0'",
    transaction: {
        amount: "10000000",
        recipientId: "9971262264659915921L",
        timestamp: 57525937,
        type: 0,
        fee: "20000000",
        asset: {
            data: "Test data"
        }
    }
);

Result

{
    success: true,
    payload: {
        signature: string
    }
}

Error

{
    success: false,
    payload: {
        error: string // error message
    }
}