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

Constructors

== Synopses

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

empty constructor


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:Coin-04/2constructor-04c.adoc[Coin]();
----

[.small]#xref:Coin-04/2constructor-04c.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:Coin-04/2constructor-047.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:Coin-04/2constructor-02.adoc[_» more&period;&period;&period;_]#

== 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]#
