Function decodeTransactionOutputs

  • Decode a CompactUint-prefixed series of Transaction Outputs according to the version 1/2 P2P network transaction format.

    This function verifies that the provided bin contains one CompactUint followed by the indicated number of serialized transaction outputs with no additional data. To read a transaction from a specific location within a Uint8Array, use readTransactionCommon.

    For the reverse, see encodeTransactionOutputs.

    Parameters

    • bin: Uint8Array

      the encoded transaction to decode

    Returns string | Output[]

Generated using TypeDoc