[#wallet-ScriptPubKeyMan-GetNewDestination] = xref:wallet.adoc[wallet]::xref:wallet/ScriptPubKeyMan.adoc[ScriptPubKeyMan]::GetNewDestination :relfileprefix: ../../ :mrdocs: Returns a new destination of the given output type, or an error if unsupported. == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:util/Result.adoc[util::Result<CTxDestination>] GetNewDestination(xref:OutputType.adoc[OutputType] const type); ---- == Return Value The new destination, or an error if the type is unsupported. == Parameters [cols="1,4"] |=== | Name| Description | *type* | The output type of the destination to create. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#