[#CTxOut-2constructor-0a] = xref:CTxOut.adoc[CTxOut]::CTxOut :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<primitives/transaction.h>` Constructs a null output. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CTxOut/2constructor-0b.adoc[CTxOut](); ---- [.small]#xref:CTxOut/2constructor-0b.adoc[_» more..._]# Constructs an output with a given value and spending script. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CTxOut/2constructor-07.adoc[CTxOut]( xref:CAmount.adoc[CAmount] const& nValueIn, xref:CScript.adoc[CScript] scriptPubKeyIn); ---- [.small]#xref:CTxOut/2constructor-07.adoc[_» more..._]# == 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]#