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

Add scriptPubKeys for this ScriptPubKeyMan into the scriptPubKey cache

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
CacheNewScriptPubKeys(
    std::set&lt;CScript&gt; const& spks,
    xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]* spkm);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *spks*
| The scripts to cache&period;
| *spkm*
| The ScriptPubKeyMan the scripts belong to&period;
|===


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