rippleSignTransaction.md

January 3, 2022 ยท View on GitHub

Ripple: Sign transaction

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

});

Params

Optional common params

flowtype
  • path โ€” required string | Array<number> minimum length is 3. read more
  • transaction - required Object type of RippleTransaction

Example

TrezorConnect.rippleSignTransaction(
    path: "m/44'/144'/0'/0/0",
    transaction: {
        fee: '100000',
        flags: 0x80000000,
        sequence: 25,
        payment: {
            amount: '100000000',
            destination: 'rBKz5MC2iXdoS3XgnNSYmF69K1Yo4NS3Ws'
        }
    }
});

Result

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

Error

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