stellarSignTransaction

Stellar: 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 OneKey.

const result = await HardwareSDK.stellarSignTransaction(connectId, deviceId, params);

Params

Optional common params

  • path - required string | Array<number> length is 3, Here's a special chain. read more

  • networkPassphrase - required string network passphrase

  • transaction - required Object type of StellarTransaction

StellarTransaction Type

export type StellarTransaction = {
  source: string;
  fee: number;
  sequence: string | number;
  timebounds?: {
    minTime: number;
    maxTime: number;
  };
  memo?: {
    type: 0 | 1 | 2 | 3 | 4;
    id?: string;
    text?: string;
    hash?: string | Buffer;
  };
  operations: StellarOperation[];
};

Examples

Result

Error

Last updated

Was this helpful?