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
059f88b6a97b7a3ae1f033885e40ac01f91e6d60 Add RPC help for getblock verbosity level 3 (Kiminuo)
1bdd5f63229ebf28c24a8656f486ed8a6c8b3787 Address review comments from #22918 (Kiminuo)
Pull request description:
This is a follow-up PR to #22918 which addresses review comments (first commit). The second commit adds missing RPC help for verbosity level 3.
ACKs for top commit:
pg156:
ACK bitcoin/bitcoin@059f88b
laanwj:
re-ACK 059f88b6a97b7a3ae1f033885e40ac01f91e6d60
Tree-SHA512: f27d53ac34b93a304ef5668701ed2b5c986a926bc8ad0df4de89695fc9e1df26acb008611451319ea897658acd9c56c6a0555d60359960c9cd28238ebefa2d50
"If verbosity is 3, returns an Object with information about block <hash> and information about each transaction, including prevout information for inputs (only for unpruned blocks in the current best chain).\n",
882
883
{
883
884
{"blockhash", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "The block hash"},
884
-
{"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"},
885
+
{"verbosity|verbose", RPCArg::Type::NUM, RPCArg::Default{1}, "0 for hex-encoded data, 1 for a JSON object, 2 for JSON object with transaction data, and 3 for JSON object with transaction data including prevout information for inputs"},
885
886
},
886
887
{
887
888
RPCResult{"for verbosity = 0",
@@ -929,6 +930,37 @@ static RPCHelpMan getblock()
929
930
}},
930
931
}},
931
932
}},
933
+
RPCResult{"for verbosity = 3",
934
+
RPCResult::Type::OBJ, "", "",
935
+
{
936
+
{RPCResult::Type::ELISION, "", "Same output as verbosity = 2"},
937
+
{RPCResult::Type::ARR, "tx", "",
938
+
{
939
+
{RPCResult::Type::OBJ, "", "",
940
+
{
941
+
{RPCResult::Type::ARR, "vin", "",
942
+
{
943
+
{RPCResult::Type::OBJ, "", "",
944
+
{
945
+
{RPCResult::Type::ELISION, "", "The same output as verbosity = 2"},
946
+
{RPCResult::Type::OBJ, "prevout", "(Only if undo information is available)",
947
+
{
948
+
{RPCResult::Type::BOOL, "generated", "Coinbase or not"},
949
+
{RPCResult::Type::NUM, "height", "The height of the prevout"},
950
+
{RPCResult::Type::NUM, "value", "The value in " + CURRENCY_UNIT},
951
+
{RPCResult::Type::OBJ, "scriptPubKey", "",
952
+
{
953
+
{RPCResult::Type::STR, "asm", "The asm"},
954
+
{RPCResult::Type::STR, "hex", "The hex"},
955
+
{RPCResult::Type::STR, "address", /*optional=*/true, "The Dash address (only if a well-defined address exists)"},
956
+
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
0 commit comments