[#wallet-CWallet-GetNewDestination] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::GetNewDestination :relfileprefix: ../../ :mrdocs: Generate a new receiving destination of the given type. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:util/Result.adoc[util::Result<CTxDestination>] GetNewDestination( xref:OutputType.adoc[OutputType] type, std::string const& label); ---- == Return Value The new destination, or an error if none could be generated. == Parameters [cols="1,4"] |=== | Name| Description | *type* | The output type for the new address. | *label* | The label to assign to the new address. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#