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

CRTP mixin adding coin accessors shared by the view and owning types&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Derived&gt;
class CoinApi;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:btck/CoinApi-06/GetConfirmationHeight.adoc[`GetConfirmationHeight`] 
| Returns the height at which the coin was confirmed&period;
| xref:btck/CoinApi-06/GetOutput.adoc[`GetOutput`] 
| Returns the transaction output backing the coin&period;
| xref:btck/CoinApi-06/IsCoinbase.adoc[`IsCoinbase`] 
| Reports whether the coin originates from a coinbase transaction&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `Derived`
| 
|===

== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:btck/Coin.adoc[`Coin`] 
| Owning wrapper over a `btck&lowbar;Coin`&period;
| xref:btck/CoinView.adoc[`CoinView`] 
| Non&hyphen;owning view over a `btck&lowbar;Coin`, an unspent transaction output entry&period;
|===


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