CombinePSBTs

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

Synopsis

Declared in <psbt.h>

[[nodiscard]]
std::optional<PartiallySignedTransaction>
CombinePSBTs(std::vector<PartiallySignedTransaction> const& psbtxs);

Return Value

The combined PSBT or std::nullopt if the PSBTs cannot be combined

NOTE

The return value should not be discarded.

Parameters

NameDescription
psbtxs [in]the PSBTs to combine