Add a descriptor to the wallet, return a ScriptPubKeyMan & associated output type
Declared in <wallet/wallet.h>
[[requires_capability(0x7fbc76bff538), requires_capability(0x7fbc81b78ef8), requires_capability(0x7fbc7e016d78), requires_capability(0x7fbc7e246228), requires_capability(0x7fbc8e716e68)]]
util::Result<std::reference_wrapper<DescriptorScriptPubKeyMan>>
AddWalletDescriptor(
WalletDescriptor& desc,
FlatSigningProvider const& signing_provider,
std::string const& label,
bool internal);
The added descriptor ScriptPubKeyMan, or an error on failure.
| Name | Description |
|---|---|
| desc | The wallet descriptor to add. |
| signing_provider | Keys and scripts needed to solve the descriptor. |
| label | The label to assign to generated addresses. |
| internal | Whether the descriptor manages internal (change) addresses. |