View Source Bitcoinex.Transaction.Out (bitcoinex v0.3.0)

Transaction Output part of an on-chain transaction.

Link to this section Summary

Functions

Parses a binary that must contain exactly one serialized transaction output: trailing bytes after the scriptPubKey make it invalid.

Link to this section Types

@type t() :: %Bitcoinex.Transaction.Out{
  script_pub_key: binary(),
  value: non_neg_integer()
}

Link to this section Functions

@spec parse_output(binary()) :: {:ok, t()} | {:error, :invalid_output}

Parses a binary that must contain exactly one serialized transaction output: trailing bytes after the scriptPubKey make it invalid.

Link to this function

parse_outputs(counter, outputs)

View Source
Link to this function

serialize_outputs(outputs)

View Source
@spec serialize_outputs([t()]) :: iolist()