You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/wallet/rpc/wallet.cpp
+104Lines changed: 104 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -925,6 +925,109 @@ RPCHelpMan gethdkeys()
925
925
};
926
926
}
927
927
928
+
static RPCHelpMan createwalletdescriptor()
929
+
{
930
+
return RPCHelpMan{"createwalletdescriptor",
931
+
"Creates the wallet's descriptor for the given address type. "
932
+
"The address type must be one that the wallet does not already have a descriptor for."
933
+
+ HELP_REQUIRING_PASSPHRASE,
934
+
{
935
+
{"type", RPCArg::Type::STR, RPCArg::Optional::NO, "The address type the descriptor will produce. Options are \"legacy\", \"p2sh-segwit\", \"bech32\", and \"bech32m\"."},
{"internal", RPCArg::Type::BOOL, RPCArg::DefaultHint{"Both external and internal will be generated unless this parameter is specified"}, "Whether to only make one descriptor that is internal (if parameter is true) or external (if parameter is false)"},
938
+
{"hdkey", RPCArg::Type::STR, RPCArg::DefaultHint{"The HD key used by all other active descriptors"}, "The HD key that the wallet knows the private key of, listed using 'gethdkeys', to use for this descriptor's key"},
939
+
}},
940
+
},
941
+
RPCResult{
942
+
RPCResult::Type::OBJ, "", "",
943
+
{
944
+
{RPCResult::Type::ARR, "descs", "The public descriptors that were added to the wallet",
0 commit comments