Function hashTransactionUiOrder

  • Compute a transaction hash (A.K.A. "transaction ID" or "TXID") from an encoded transaction in user interface byte order. This is the byte order typically used by block explorers, wallets, and other user interfaces.

    To return this result as a string, use hashTransaction.

    Parameters

    • transaction: Uint8Array

      the encoded transaction

    • sha256: {
          hash: ((input) => Uint8Array) & ((input) => Uint8Array);
      } = internalSha256

      an implementation of sha256

      • hash: ((input) => Uint8Array) & ((input) => Uint8Array)

    Returns Uint8Array

    the transaction hash in User Interface byte order

Generated using TypeDoc