[#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&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
xref:util/Result.adoc[util::Result&lt;CTxDestination&gt;]
GetNewDestination(xref:OutputType.adoc[OutputType] const type);
----

== Return Value

The new destination, or an error if the type is unsupported&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| The output type of the destination to create&period;
|===


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