wallet::CWallet::SetupDescriptorScriptPubKeyMan

Create new DescriptorScriptPubKeyMan and add it to the wallet

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7f94fde06e18), requires_capability(0x7f95061a9b58), requires_capability(0x7f94f2b7a668), requires_capability(0x7f94f0cf92f8), requires_capability(0x7f94fee3bce8)]]
DescriptorScriptPubKeyMan&
SetupDescriptorScriptPubKeyMan(
    WalletBatch& batch,
    CExtKey const& master_key,
    OutputType const& output_type,
    bool internal);

Return Value

The newly created descriptor ScriptPubKeyMan.

Parameters

NameDescription
batchThe database batch to write through.
master_keyThe master key to derive the descriptor from.
output_typeThe output type the descriptor produces.
internalWhether this manages internal (change) addresses.