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

Owning wrapper over a `btck&lowbar;Coin`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Coin
    : public xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;Coin, btck&lowbar;coin&lowbar;copy, btck&lowbar;coin&lowbar;destroy&gt;]
    , public xref:btck/CoinApi-06.adoc[CoinApi&lt;Coin&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/Handle-046.adoc[Handle&lt;btck&lowbar;Coin, btck&lowbar;coin&lowbar;copy, btck&lowbar;coin&lowbar;destroy&gt;]`
| Owning RAII handle for a copyable C object of type `CType&period;`
| `xref:btck/CoinApi-06.adoc[CoinApi&lt;Coin&gt;]`
| CRTP mixin adding coin accessors shared by the view and owning types&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/Coin/2constructor-07.adoc[`Coin`]         [.small]#[constructor]#
| Constructors
| xref:btck/Coin/operator_assign-06.adoc[`operator&equals;`] 
| Assignment operators
| xref:btck/Coin/GetConfirmationHeight.adoc[`GetConfirmationHeight`] 
| Returns the height at which the coin was confirmed&period;
| xref:btck/Coin/GetOutput.adoc[`GetOutput`] 
| Returns the transaction output backing the coin&period;
| xref:btck/Coin/IsCoinbase.adoc[`IsCoinbase`] 
| Reports whether the coin originates from a coinbase transaction&period;
| xref:btck/Coin/get-03.adoc[`get`] 
| Returns the owned C handle&period;
|===


== Protected Data Members

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



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