[#wallet-CWallet-GetNewChangeDestination]
= xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetNewChangeDestination
:relfileprefix: ../../
:mrdocs:

Generate a new change destination of the given type&period;

== Synopsis

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

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

== Return Value

The new change destination, or an error if none could be generated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| The output type for the new change address&period;
|===


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