[#PSBTOutput-2constructor-06]
= xref:PSBTOutput.adoc[PSBTOutput]::PSBTOutput
:relfileprefix: ../
:mrdocs:

Construct an output for the given PSBT version, amount, and script&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
PSBTOutput(
    uint32&lowbar;t psbt&lowbar;version,
    xref:CAmount.adoc[CAmount] amount,
    xref:CScript.adoc[CScript] const& script);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *psbt&lowbar;version*
| The PSBT version (0 or 2)&period;
| *amount*
| The output amount&period;
| *script*
| The output script&period;
|===


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