[#Coin-04-2constructor-047]
= xref:Coin-04.adoc[Coin]::Coin
:relfileprefix: ../
:mrdocs:

Construct a Coin from a CTxOut and height&sol;coinbase information&period;

== Synopsis

Declared in `&lt;coins&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Coin(
    xref:CTxOut.adoc[CTxOut] const& outIn,
    int nHeightIn,
    bool fCoinBaseIn);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *outIn*
| The transaction output to copy&period;
| *nHeightIn*
| Height of the block that included the containing transaction&period;
| *fCoinBaseIn*
| Whether the containing transaction was a coinbase&period;
|===


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