[#wallet-ScriptPubKeyMan-MarkUnusedAddresses]
= xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::MarkUnusedAddresses
:relfileprefix: ../../
:mrdocs:

Mark unused addresses as being used Affects all keys up to and including the one determined by provided script&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::vector&lt;WalletDestination&gt;
MarkUnusedAddresses(xref:CScript.adoc[CScript] const& script);
----

== Return Value

All of the addresses affected

== Parameters

[cols="1,4"]
|===
| Name| Description
| *script*
| determines the last key to mark as used
|===


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