wallet::WalletDescriptor::WalletDescriptor

Constructs a wallet descriptor from a descriptor and its range metadata.

Synopsis

Declared in <wallet/walletutil.h>

WalletDescriptor(
    std::shared_ptr<Descriptor> descriptor,
    uint64_t creation_time,
    int32_t range_start,
    int32_t range_end,
    int32_t next_index);

Parameters

NameDescription
descriptorThe output script descriptor.
creation_timeUnix timestamp of when the descriptor was added.
range_startFirst index in the descriptor's range.
range_endIndex past the last item in the range.
next_indexIndex of the next item to generate.