wallet::ExportDescriptors

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

NameDescription
walletThe wallet whose descriptors are exported.
export_privateWhether to include private keys in the exported descriptors.