wallet::CWallet::GetNewChangeDestination

Generate a new change destination of the given type.

Synopsis

Declared in <wallet/wallet.h>

util::Result<CTxDestination>
GetNewChangeDestination(OutputType type);

Return Value

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

Parameters

NameDescription
typeThe output type for the new change address.