[#wallet-DescriptorScriptPubKeyMan-GetReservedDestination-0e] = xref:wallet.adoc[wallet]::xref:wallet/DescriptorScriptPubKeyMan.adoc[DescriptorScriptPubKeyMan]::GetReservedDestination :relfileprefix: ../../ :mrdocs: Reserves a destination from the descriptor cache and returns it. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:util/Result.adoc[util::Result<CTxDestination>] GetReservedDestination( xref:OutputType.adoc[OutputType] type, bool internal, int64_t& index) override; ---- == Return Value The reserved destination, or an error if none is available. == Parameters [cols="1,4"] |=== | Name| Description | *type* | The output type of the destination to reserve. | *internal* | Whether to reserve from the internal (change) chain. | *index* | Set to the index of the reserved cache entry. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#