@@ -530,12 +530,15 @@ UniValue getblock(const JSONRPCRequest& request)
530530 " getblock \" blockhash\" ( verbosity )\n "
531531 " \n If verbosity is 0, returns a string that is serialized, hex-encoded data for block 'hash'.\n "
532532 " If verbosity is 1, returns an Object with information about block <hash>.\n "
533- " If verbosity is 2, returns an Object with information about block <hash> and information about each transaction. \n "
533+ " If verbosity is 2, returns an Object with information about block <hash> and information about each transaction.\n "
534534
535535 " \n Arguments:\n "
536536 " 1. \" blockhash\" (string, required) The block hash\n "
537537 " 2. verbosity (numeric, optional, default=1) 0 for hex encoded data, 1 for a json object, and 2 for json object with transaction data\n "
538538
539+ " \n Result (for verbosity = 0):\n "
540+ " \" data\" (string) A string that is serialized, hex-encoded data for block 'hash'.\n "
541+
539542 " \n Result (for verbosity = 1):\n "
540543 " {\n "
541544 " \" hash\" : \" hash\" , (string) the block hash (same as provided)\n "
@@ -561,8 +564,14 @@ UniValue getblock(const JSONRPCRequest& request)
561564 " }\n "
562565 " }\n "
563566
564- " \n Result (for verbose=false):\n "
565- " \" data\" (string) A string that is serialized, hex-encoded data for block 'hash'.\n "
567+ " \n Result (for verbosity = 2):\n "
568+ " {\n "
569+ " ..., Same output as verbosity = 1.\n "
570+ " \" tx\" : [ (array of Objects) The transactions in the format of the getrawtransaction RPC. Different from verbosity = 1 \" tx\" result.\n "
571+ " ,...\n "
572+ " ],\n "
573+ " ,... Same output as verbosity = 1.\n "
574+ " }\n "
566575
567576 " \n Examples:\n " +
568577 HelpExampleCli (" getblock" , " \" 00000000000fd08c2fb661d2fcb0d49abb3a91e5f27082ce64feed3b4dede2e2\" " ) +
@@ -1454,7 +1463,7 @@ static const CRPCCommand commands[] =
14541463 // --------------------- ------------------------ ----------------------- ------ --------
14551464 { " blockchain" , " getbestblockhash" , &getbestblockhash, true , {} },
14561465 { " blockchain" , " getbestsaplinganchor" , &getbestsaplinganchor, true , {} },
1457- { " blockchain" , " getblock" , &getblock, true , {" blockhash" ," verbosity" } },
1466+ { " blockchain" , " getblock" , &getblock, true , {" blockhash" ," verbose| verbosity" } },
14581467 { " blockchain" , " getblockchaininfo" , &getblockchaininfo, true , {} },
14591468 { " blockchain" , " getblockcount" , &getblockcount, true , {} },
14601469 { " blockchain" , " getblockhash" , &getblockhash, true , {" height" } },
0 commit comments