Export the descriptors from a wallet so that they can be imported elsewhere

Synopsis

Declared in <wallet/export.h>

[[requires_capability(0x7f2e16015040)]]
util::Expected<std::vector<WalletDescInfo>, std::string>
ExportDescriptors(
    CWallet const& wallet,
    bool export_private);

Return Value

The exported descriptor info on success, or an error string on failure.

Parameters

Name

Description

wallet

The wallet whose descriptors are exported.

export_private

Whether to include private keys in the exported descriptors.

Created with MrDocs