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

Get the ScriptPubKeyMan for the given OutputType and internal&sol;external chain&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]*
GetScriptPubKeyMan(
    xref:OutputType.adoc[OutputType] const& type,
    bool internal) const;
----

== Return Value

The matching ScriptPubKeyMan, or nullptr if none&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| The output type to look up&period;
| *internal*
| Whether to look up the internal (change) manager&period;
|===


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