[#Coin-04-2constructor-02] = xref:Coin-04.adoc[Coin]::Coin :relfileprefix: ../ :mrdocs: construct a Coin from a CTxOut and height/coinbase information. == Synopsis Declared in `<coins.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Coin( xref:CTxOut.adoc[CTxOut]&& outIn, int nHeightIn, bool fCoinBaseIn); ---- == Parameters [cols="1,4"] |=== | Name| Description | *outIn* | The transaction output to store (moved into the Coin). | *nHeightIn* | Height of the block that included the containing transaction. | *fCoinBaseIn* | Whether the containing transaction was a coinbase. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#