[#PSBTOutput]
= PSBTOutput
:mrdocs:

A structure for PSBTs which contains per output information

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class PSBTOutput;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:PSBTOutput/2constructor-01.adoc[`PSBTOutput`]         [.small]#[constructor]#
| Constructors
| xref:PSBTOutput/FillSignatureData.adoc[`FillSignatureData`] 
| Populate signature data from this output&apos;s fields&period;
| xref:PSBTOutput/FromSignatureData.adoc[`FromSignatureData`] 
| Copy relevant fields from the given signature data into this output&period;
| xref:PSBTOutput/GetVersion.adoc[`GetVersion`] 
| Return the PSBT version of this output&period;
| xref:PSBTOutput/Merge.adoc[`Merge`] 
| Merge another output&apos;s fields into this one&period;
| xref:PSBTOutput/Serialize.adoc[`Serialize`] 
| Serialize this output to a stream&period;
| xref:PSBTOutput/Unserialize.adoc[`Unserialize`] 
| Deserialize this output from a stream&period;
| xref:PSBTOutput/operator_eq.adoc[`operator&equals;&equals;`] 
| Compare two outputs for equality field by field&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:PSBTOutput/amount.adoc[`amount`] 
| The output amount (PSBTv2)&period;
| xref:PSBTOutput/hd_keypaths.adoc[`hd&lowbar;keypaths`] 
| BIP32 derivation paths keyed by public key&period;
| xref:PSBTOutput/m_musig2_participants.adoc[`m&lowbar;musig2&lowbar;participants`] 
| MuSig2 participant public keys keyed by aggregate public key&period;
| xref:PSBTOutput/m_proprietary.adoc[`m&lowbar;proprietary`] 
| Proprietary key&hyphen;value records&period;
| xref:PSBTOutput/m_tap_bip32_paths.adoc[`m&lowbar;tap&lowbar;bip32&lowbar;paths`] 
| Taproot BIP32 derivation paths keyed by x&hyphen;only public key&period;
| xref:PSBTOutput/m_tap_internal_key.adoc[`m&lowbar;tap&lowbar;internal&lowbar;key`] 
| Taproot internal key&period;
| xref:PSBTOutput/m_tap_tree.adoc[`m&lowbar;tap&lowbar;tree`] 
| Taproot tree leaves, each as depth, leaf version, and script&period;
| xref:PSBTOutput/redeem_script.adoc[`redeem&lowbar;script`] 
| The redeem script for a P2SH output&period;
| xref:PSBTOutput/script.adoc[`script`] 
| The output script (PSBTv2)&period;
| xref:PSBTOutput/unknown.adoc[`unknown`] 
| Unknown key&hyphen;value pairs preserved across round&hyphen;trips&period;
| xref:PSBTOutput/witness_script.adoc[`witness&lowbar;script`] 
| The witness script for a P2WSH output&period;
|===



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