wallet::CWallet::GetNewDestination

Generate a new receiving destination of the given type.

Synopsis

Declared in <wallet/wallet.h>

util::Result<CTxDestination>
GetNewDestination(
    OutputType type,
    std::string const& label);

Return Value

The new destination, or an error if none could be generated.

Parameters

NameDescription
typeThe output type for the new address.
labelThe label to assign to the new address.