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

Returns a previously reserved destination to the keypool for reuse&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
ReturnDestination(
    int64&lowbar;t index,
    bool internal,
    xref:CTxDestination.adoc[CTxDestination] const& addr);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| The keypool index of the reserved destination&period;
| *internal*
| Whether the destination belongs to the internal (change) chain&period;
| *addr*
| The destination being returned&period;
|===


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