[#CTxOut-2constructor-07] = xref:CTxOut.adoc[CTxOut]::CTxOut :relfileprefix: ../ :mrdocs: Constructs an output with a given value and spending script. == Synopsis Declared in `<primitives/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CTxOut( xref:CAmount.adoc[CAmount] const& nValueIn, xref:CScript.adoc[CScript] scriptPubKeyIn); ---- == Parameters [cols="1,4"] |=== | Name| Description | *nValueIn* | The amount carried by the output. | *scriptPubKeyIn* | The script defining the spending conditions. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#