dnxSignTransaction

Dynex: sign transaction

Signs the given Dynex transaction with the private key derived by given BIP32 path. User is asked to confirm the transaction details on OneKey.

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

Use requirement

  • Firmware version required

    • classic: 3.8.0

Parameters

connectId: string

  • Unique identifier for the connection

deviceId: string

  • Unique identifier for the hardware device

params: object

  • path: string - BIP32 path (e.g. "m/44'/0'/0'/0/0") [required]

  • inputs: array - Array of transaction inputs [required]

    • prevIndex: number - Previous output index

    • globalIndex: number - Global index

    • txPubkey: string - Transaction public key

    • prevOutPubkey: string - Previous output public key

    • amount: string - Input amount

  • toAddress: string - Destination address [required]

  • amount: string - Transaction amount [required]

  • fee: string - Transaction fee [required]

  • paymentIdHex: string - Optional payment ID (must be 32 bytes)

Example

Returns

Success response:

Error response:

Last updated

Was this helpful?