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
{"template_request", RPCArg::Type::OBJ, /* opt */false, /* default_val */"", "A json object in the following spec",
319
+
{"template_request", RPCArg::Type::OBJ, RPCArg::Optional::NO, "A json object in the following spec",
320
320
{
321
-
{"mode", RPCArg::Type::STR, /*opt */true, /* default_val */"", "This must be set to \"template\", \"proposal\" (see BIP 23), or omitted"},
322
-
{"capabilities", RPCArg::Type::ARR, /*opt */true, /* default_val */"", "A list of strings",
321
+
{"mode", RPCArg::Type::STR, /*treat as named arg */RPCArg::Optional::OMITTED_NAMED_ARG, "This must be set to \"template\", \"proposal\" (see BIP 23), or omitted"},
322
+
{"capabilities", RPCArg::Type::ARR, /*treat as named arg */RPCArg::Optional::OMITTED_NAMED_ARG, "A list of strings",
"\nCreates a multi-signature address with n signature of m keys required.\n"
88
88
"It returns a json object with the address and redeemScript.\n",
89
89
{
90
-
{"nrequired", RPCArg::Type::NUM, /* opt */false, /* default_val */"", "The number of required signatures out of the n keys."},
91
-
{"keys", RPCArg::Type::ARR, /* opt */false, /* default_val */"", "A json array of hex-encoded public keys.",
90
+
{"nrequired", RPCArg::Type::NUM, RPCArg::Optional::NO, "The number of required signatures out of the n keys."},
91
+
{"keys", RPCArg::Type::ARR, RPCArg::Optional::NO, "A json array of hex-encoded public keys.",
92
92
{
93
-
{"key", RPCArg::Type::STR_HEX, /* opt */false, /* default_val */"", "The hex-encoded public key"},
93
+
{"key", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "The hex-encoded public key"},
94
94
}},
95
-
{"address_type", RPCArg::Type::STR, /*opt */true, /* default_val*/"legacy", "The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
95
+
{"address_type", RPCArg::Type::STR, /*default*/"legacy", "The address type to use. Options are \"legacy\", \"p2sh-segwit\", and \"bech32\"."},
"or more path elements separated by \"/\", where \"h\" represents a hardened child key.\n"
159
159
"For more information on output descriptors, see the documentation in the doc/descriptors.md file.\n"},
160
160
{
161
-
{"descriptor", RPCArg::Type::STR, /* opt */false, /* default_val */"", "The descriptor."},
162
-
{"begin", RPCArg::Type::NUM, /* opt */true, /* default_val */"", "If a ranged descriptor is used, this specifies the beginning of the range to import."},
163
-
{"end", RPCArg::Type::NUM, /* opt */true, /* default_val */"", "If a ranged descriptor is used, this specifies the end of the range to import."}
161
+
{"descriptor", RPCArg::Type::STR, RPCArg::Optional::NO, "The descriptor."},
162
+
{"begin", RPCArg::Type::NUM, RPCArg::Optional::OMITTED_NAMED_ARG, "If a ranged descriptor is used, this specifies the beginning of the range to import."},
163
+
{"end", RPCArg::Type::NUM, RPCArg::Optional::OMITTED_NAMED_ARG, "If a ranged descriptor is used, this specifies the end of the range to import."}
0 commit comments