[#CombinePSBTs]
= CombinePSBTs
:mrdocs:

Combines PSBTs with the same underlying transaction, resulting in a single PSBT with all partial signatures from each input&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
std::optional&lt;PartiallySignedTransaction&gt;
CombinePSBTs(std::vector&lt;PartiallySignedTransaction&gt; const& psbtxs);
----

== Return Value

The combined PSBT or std&colon;&colon;nullopt if the PSBTs cannot be combined

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *psbtxs* [in]
| the PSBTs to combine
|===


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