createwalletdescriptor
Changed params/results since v30.2 Wallet
Summary
Creates the wallet's descriptor for the given address type. The address type must be one that the wallet does not already have a descriptor for. On P2MR-only chains, public P2MR descriptors are omitted from the result; use exportpubkeydb for watch-only P2MR exports.
Description
Creates the wallet's descriptor for the given address type. The address type must be one that the wallet does not already have a descriptor for. On P2MR-only chains, public P2MR descriptors are omitted from the result; use exportpubkeydb for watch-only P2MR exports. Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
Change Buckets
- Changed params/results since v30.2
Arguments
type(STR, required): The address type the descriptor will produce. Options are "p2mr" on launch chains; unrestricted regtest also accepts "legacy", "p2sh-segwit", "bech32", "bech32m", "p2mr".options(OBJ_NAMED_PARAMS): No description.internal(BOOL): Whether to only make one descriptor that is internal (if parameter is true) or external (if parameter is false)hdkey(STR): The HD key that the wallet knows the private key of to use for this descriptor's key
Results
value(OBJ): No description.descs(ARR): The public descriptors that were added to the walletvalue(STR): No description.
warnings(ARR, optional): No description.value(STR): No description.
Examples
qbit-cli createwalletdescriptor p2mr
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "createwalletdescriptor", "params": [p2mr]}' -H 'content-type: application/json' http://127.0.0.1:8352/