[#wallet-DescriptorScriptPubKeyMan-UpdateWalletDescriptor] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::UpdateWalletDescriptor :relfileprefix: ../../ :mrdocs: Updates this spkm's descriptor, e.g. to add private keys or cache data. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:util/Result.adoc[util::Result<void>] 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. == Parameters [cols="1,4"] |=== | Name| Description | *descriptor* | The descriptor to update to. | *provider* | The signing provider supplying keys for the descriptor. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#