xrpSignTransaction

Ripple: Sign transaction

Asks device to sign given transaction. User is asked to confirm all transaction details on OneKey.

const response = await HardwareSDK.xrpSignTransaction(connectId, deviceId, params)

Params

Optional common params

  • path - required string | Array<number> minimum length is 3. read more

  • transaction - required XrpTransaction type

XrpTransaction Type

type XrpTransaction = {
    fee: string;
    flags?: number;
    sequence: number;
    maxLedgerVersion?: number; // Proto: "last_ledger_sequence"
    payment: RipplePayment;
}

type XrpPayment = {
    amount: string;
    destination: string;
    destinationTag?: number;
}

Example

Result

Error

Last updated

Was this helpful?