Asks device to sign given transaction. User is asked to confirm all transaction details on Trezor.
ES6
const result = await TrezorConnect.rippleSignTransaction(params);
CommonJS
TrezorConnect.rippleSignTransaction(params).then(function(result) {
});
path
— requiredstring | Array<number>
minimum length is3
. read moretransaction
- requiredObject
type of RippleTransaction
TrezorConnect.rippleSignTransaction(
path: "m/44'/144'/0'/0/0",
transaction: {
fee: '100000',
flags: 0x80000000,
sequence: 25,
payment: {
amount: '100000000',
destination: 'rBKz5MC2iXdoS3XgnNSYmF69K1Yo4NS3Ws'
}
}
});
{
success: true,
payload: {
serializedTx: string,
signature: string,
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}