wallet::DescriptorScriptPubKeyMan::GetDescriptorString

Serializes the descriptor to a string, optionally including private keys.

Synopsis

Declared in <wallet/scriptpubkeyman.h>

[[nodiscard]]
bool
GetDescriptorString(
    std::string& out,
    bool priv) const;

Return Value

true if the descriptor was serialized.

NOTE

The return value should not be discarded.

Parameters

NameDescription
outFilled with the serialized descriptor string.
privWhether to include private keys in the output.