wallet::GenerateWalletDescriptor

Builds a new wallet descriptor for the given key and output type.

Synopsis

Declared in <wallet/walletutil.h>

WalletDescriptor
GenerateWalletDescriptor(
    CExtPubKey const& master_key,
    OutputType const& output_type,
    bool internal);

Return Value

The generated wallet descriptor.

Parameters

NameDescription
master_keyThe extended public key the descriptor derives from.
output_typeThe output type the descriptor should produce.
internalWhether the descriptor is for internal (change) addresses.