[#btck-TransactionSpentOutputs]
= xref:btck.adoc[btck]::TransactionSpentOutputs
:relfileprefix: ../
:mrdocs:

Owning wrapper over a `btck&lowbar;TransactionSpentOutputs`, the coins spent by one transaction&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class TransactionSpentOutputs
    : public xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;TransactionSpentOutputs, btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;copy, btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;destroy&gt;]
    , public xref:btck/TransactionSpentOutputsApi-0d.adoc[TransactionSpentOutputsApi&lt;TransactionSpentOutputs&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;TransactionSpentOutputs, btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;copy, btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;destroy&gt;]`
| Owning RAII handle for a copyable C object of type `CType&period;`
| `xref:btck/TransactionSpentOutputsApi-0d.adoc[TransactionSpentOutputsApi&lt;TransactionSpentOutputs&gt;]`
| CRTP mixin adding accessors over the coins spent by one transaction&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/TransactionSpentOutputs/2constructor-05.adoc[`TransactionSpentOutputs`]         [.small]#[constructor]#
| Constructors
| xref:btck/TransactionSpentOutputs/operator_assign-01.adoc[`operator&equals;`] 
| Assignment operators
| xref:btck/TransactionSpentOutputs/Coins-02.adoc[`Coins`] 
| Returns a range over all coins spent by the transaction&period;
| xref:btck/TransactionSpentOutputs/Count.adoc[`Count`] 
| Returns the number of spent outputs&period;
| xref:btck/TransactionSpentOutputs/GetCoin.adoc[`GetCoin`] 
| Returns a single spent coin by index&period;
| xref:btck/TransactionSpentOutputs/get-08.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:btck/TransactionSpentOutputs/m_ptr.adoc[`m&lowbar;ptr`] 
| The owned C handle&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
