Bitcoin transaction output.
Summary
Functions
Parse an output from raw binary. Returns {:ok, output, remaining_bytes} on success.
Return the locking script as a hex string.
Create a new empty output with default values.
Serialize the output to raw binary (wire format).
Types
@type t() :: %BSV.Transaction.Output{ change: boolean(), locking_script: BSV.Script.t(), satoshis: non_neg_integer() }
Functions
Parse an output from raw binary. Returns {:ok, output, remaining_bytes} on success.
Return the locking script as a hex string.
@spec new() :: t()
Create a new empty output with default values.
Serialize the output to raw binary (wire format).