[#CTxOut-2constructor-07]
= xref:CTxOut.adoc[CTxOut]::CTxOut
:relfileprefix: ../
:mrdocs:

Constructs an output with a given value and spending script&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&period;h&gt;`

[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&period;
| *scriptPubKeyIn*
| The script defining the spending conditions&period;
|===


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