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

Constructors

== Synopses

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

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


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

[.small]#xref:PSBTOutput/2constructor-06.adoc[_» more&period;&period;&period;_]#

Construct an output by deserializing it from a stream (PSBTv2)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Stream&gt;
explicit
xref:PSBTOutput/2constructor-0d.adoc[PSBTOutput](
    xref:deserialize_type.adoc[deserialize&lowbar;type] dtag,
    Stream& s,
    uint32&lowbar;t psbt&lowbar;version);
----

[.small]#xref:PSBTOutput/2constructor-0d.adoc[_» more&period;&period;&period;_]#

== 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;
| *dtag*
| Tag selecting the deserializing constructor&period;
| *s*
| The input stream&period;
|===


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