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

Name

Description

master_key

The extended public key the descriptor derives from.

output_type

The output type the descriptor should produce.

internal

Whether the descriptor is for internal (change) addresses.

Created with MrDocs