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

Non&hyphen;owning view over a `btck&lowbar;Coin`, an unspent transaction output entry&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CoinView
    : public xref:btck/View-041.adoc[View&lt;btck&lowbar;Coin&gt;]
    , public xref:btck/CoinApi-06.adoc[CoinApi&lt;CoinView&gt;]
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `xref:btck/View-041.adoc[View&lt;btck&lowbar;Coin&gt;]`
| Non&hyphen;owning view over a const C handle of type `CType&period;`
| `xref:btck/CoinApi-06.adoc[CoinApi&lt;CoinView&gt;]`
| CRTP mixin adding coin accessors shared by the view and owning types&period;
|===

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/CoinView/2constructor.adoc[`CoinView`]         [.small]#[constructor]#
| Constructs a view over `ptr&period;`
| xref:btck/CoinView/GetConfirmationHeight.adoc[`GetConfirmationHeight`] 
| Returns the height at which the coin was confirmed&period;
| xref:btck/CoinView/GetOutput.adoc[`GetOutput`] 
| Returns the transaction output backing the coin&period;
| xref:btck/CoinView/IsCoinbase.adoc[`IsCoinbase`] 
| Reports whether the coin originates from a coinbase transaction&period;
| xref:btck/CoinView/get.adoc[`get`] 
| Returns the borrowed C handle&period;
|===


== Protected Data Members

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



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