[#wallet-ScriptPubKeyMan-2constructor-0f]
= xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::ScriptPubKeyMan
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

A class implementing ScriptPubKeyMan manages some (or all) scriptPubKeys used in a wallet&period; It contains the scripts and keys related to the scriptPubKeys it manages&period; A ScriptPubKeyMan will be able to give out scriptPubKeys to be used, as well as marking when a scriptPubKey has been used&period; It also handles when and how to store a scriptPubKey and its related scripts and keys, including encryption&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan](xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan] const&) = delete = default;
----

[.small]#xref:wallet/ScriptPubKeyMan.adoc[_» more&period;&period;&period;_]#

Construct a ScriptPubKeyMan bound to the given wallet storage&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:wallet/ScriptPubKeyMan/2constructor-09.adoc[ScriptPubKeyMan](xref:wallet/WalletStorage.adoc[WalletStorage]& storage);
----

[.small]#xref:wallet/ScriptPubKeyMan/2constructor-09.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *storage*
| The wallet storage this ScriptPubKeyMan uses to persist and query wallet&hyphen;wide state&period;
|===


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