# `BSV.Transaction.Output`
[🔗](https://github.com/Bittoku/bsv_sdk_elixir/blob/main/lib/bsv/transaction/output.ex#L1)

Bitcoin transaction output.

# `t`

```elixir
@type t() :: %BSV.Transaction.Output{
  change: boolean(),
  locking_script: BSV.Script.t(),
  satoshis: non_neg_integer()
}
```

# `from_binary`

```elixir
@spec from_binary(binary()) :: {:ok, t(), binary()} | {:error, term()}
```

Parse an output from raw binary. Returns `{:ok, output, remaining_bytes}` on success.

# `locking_script_hex`

```elixir
@spec locking_script_hex(t()) :: String.t()
```

Return the locking script as a hex string.

# `new`

```elixir
@spec new() :: t()
```

Create a new empty output with default values.

# `to_binary`

```elixir
@spec to_binary(t()) :: binary()
```

Serialize the output to raw binary (wire format).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
