[#PSBTOutput-2constructor-01] = xref:PSBTOutput.adoc[PSBTOutput]::PSBTOutput :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<psbt.h>` Construct an output for the given PSBT version, amount, and script. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:PSBTOutput/2constructor-06.adoc[PSBTOutput]( uint32_t psbt_version, xref:CAmount.adoc[CAmount] amount, xref:CScript.adoc[CScript] const& script); ---- [.small]#xref:PSBTOutput/2constructor-06.adoc[_» more..._]# Construct an output by deserializing it from a stream (PSBTv2). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename Stream> explicit xref:PSBTOutput/2constructor-0d.adoc[PSBTOutput]( xref:deserialize_type.adoc[deserialize_type] dtag, Stream& s, uint32_t psbt_version); ---- [.small]#xref:PSBTOutput/2constructor-0d.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *psbt_version* | The PSBT version (0 or 2). | *amount* | The output amount. | *script* | The output script. | *dtag* | Tag selecting the deserializing constructor. | *s* | The input stream. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#