[#wallet-DescriptorScriptPubKeyMan-UpdateWalletDescriptor]
= xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::UpdateWalletDescriptor
:relfileprefix: ../../
:mrdocs:

Updates this spkm&apos;s descriptor, e&period;g&period; to add private keys or cache data&period;

== Synopsis

Declared in `&lt;wallet&sol;scriptpubkeyman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:util/Result.adoc[util::Result&lt;void&gt;]
UpdateWalletDescriptor(
    xref:wallet/WalletDescriptor.adoc[WalletDescriptor]& descriptor,
    xref:FlatSigningProvider.adoc[FlatSigningProvider] const& provider);
----

== Return Value

Success, or an error if the update is not possible&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *descriptor*
| The descriptor to update to&period;
| *provider*
| The signing provider supplying keys for the descriptor&period;
|===


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