[#wallet-CWallet-GetDescriptorScriptPubKeyMan]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetDescriptorScriptPubKeyMan
:relfileprefix: ../../
:mrdocs:

Return the DescriptorScriptPubKeyMan for a WalletDescriptor if it is already in the wallet

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]*
GetDescriptorScriptPubKeyMan(xref:wallet/WalletDescriptor.adoc[WalletDescriptor] const& desc) const;
----

== Return Value

The matching descriptor ScriptPubKeyMan, or nullptr if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *desc*
| The wallet descriptor to look up&period;
|===


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