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

Name

Description

psbtxs [in]

the PSBTs to combine

Created with MrDocs