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
"\nReturns all transaction ids in memory pool as a json array of string transaction ids.\n"
543
543
"\nHint: use getmempoolentry to fetch a specific transaction from the mempool.\n",
544
544
{
545
-
{"verbose", RPCArg::Type::BOOL, /* default */"false", "True for a json object, false for array of transaction ids"},
546
-
{"mempool_sequence", RPCArg::Type::BOOL, /* default */"false", "If verbose=false, returns a json object with transaction list and mempool sequence number attached."},
545
+
{"verbose", RPCArg::Type::BOOL, RPCArg::Default{false}, "True for a json object, false for array of transaction ids"},
546
+
{"mempool_sequence", RPCArg::Type::BOOL, RPCArg::Default{false}, "If verbose=false, returns a json object with transaction list and mempool sequence number attached."},
"If verbose is true, returns an Object with information about blockheader <hash>.\n",
783
783
{
784
784
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
785
-
{"verbose", RPCArg::Type::BOOL, /* default */"true", "true for a json object, false for the hex-encoded data"},
785
+
{"verbose", RPCArg::Type::BOOL, RPCArg::Default{true}, "true for a json object, false for the hex-encoded data"},
786
786
},
787
787
{
788
788
RPCResult{"for verbose = true",
@@ -883,7 +883,7 @@ static RPCHelpMan getblock()
883
883
"If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. \n",
884
884
{
885
885
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
886
-
{"verbosity|verbose", RPCArg::Type::NUM, /* default */"1", "0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data"},
886
+
{"verbosity|verbose", RPCArg::Type::NUM, RPCArg::Default{1}, "0 for hex-encoded data, 1 for a json object, and 2 for json object with transaction data"},
"\nReturns statistics about the unspent transaction output set.\n"
1047
1047
"Note this call may take some time.\n",
1048
1048
{
1049
-
{"hash_type", RPCArg::Type::STR, /* default */"hash_serialized_2", "Which UTXO set hash should be calculated. Options: 'hash_serialized_2' (the legacy algorithm), 'muhash', 'none'."},
1049
+
{"hash_type", RPCArg::Type::STR, RPCArg::Default{"hash_serialized_2"}, "Which UTXO set hash should be calculated. Options: 'hash_serialized_2' (the legacy algorithm), 'muhash', 'none'."},
{"include_mempool", RPCArg::Type::BOOL, /* default */"true", "Whether to include the mempool. Note that an unspent output that is spent in the mempool won't appear."},
1108
+
{"include_mempool", RPCArg::Type::BOOL, RPCArg::Default{true}, "Whether to include the mempool. Note that an unspent output that is spent in the mempool won't appear."},
1109
1109
},
1110
1110
{
1111
1111
RPCResult{"If the UTXO was not found", RPCResult::Type::NONE, "", ""},
{"template_request", RPCArg::Type::OBJ, "{}", "Format of the template",
516
+
{"template_request", RPCArg::Type::OBJ, RPCArg::Default{UniValue::VOBJ}, "Format of the template",
517
517
{
518
518
{"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"},
519
519
{"capabilities", RPCArg::Type::ARR, /* treat as named arg */ RPCArg::Optional::OMITTED_NAMED_ARG, "A list of strings",
0 commit comments