[#UpdatePSBTOutput]
= UpdatePSBTOutput
:mrdocs:

Updates a PSBTOutput with information from provider&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
UpdatePSBTOutput(
    xref:SigningProvider.adoc[SigningProvider] const& provider,
    xref:PartiallySignedTransaction.adoc[PartiallySignedTransaction]& psbt,
    int index);
----

== Description

This fills in the redeem&lowbar;script, witness&lowbar;script, and hd&lowbar;keypaths where possible&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *provider*
| The source of scripts and derivation information&period;
| *psbt*
| The PSBT containing the output&period;
| *index*
| The index of the output to update&period;
|===


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