Skip to content

Commit b0bf4f2

Browse files
committed
Specify RPC help for verbosity = 3.
1 parent 305a59a commit b0bf4f2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

src/rpc/blockchain.cpp

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,42 @@ static RPCHelpMan getblock()
983983
}},
984984
}},
985985
}},
986+
RPCResult{"for verbosity = 3",
987+
RPCResult::Type::OBJ, "", "",
988+
{
989+
{RPCResult::Type::ELISION, "", "The same output as verbosity = 2"},
990+
{RPCResult::Type::ARR, "tx", "",
991+
{
992+
{RPCResult::Type::OBJ, "", "",
993+
{
994+
{RPCResult::Type::ARR, "vin", "",
995+
{
996+
{RPCResult::Type::OBJ, "", "",
997+
{
998+
{RPCResult::Type::ELISION, "", "The same output as verbosity = 2"},
999+
{RPCResult::Type::OBJ, "prevout", "",
1000+
{
1001+
{RPCResult::Type::BOOL, "generated", "Coinbase or not"},
1002+
{RPCResult::Type::NUM, "height", "The height of the prevout"},
1003+
{RPCResult::Type::NUM, "value", "The value in " + CURRENCY_UNIT},
1004+
{RPCResult::Type::OBJ, "scriptPubKey", "",
1005+
{
1006+
{RPCResult::Type::STR, "asm", "The asm"},
1007+
{RPCResult::Type::STR, "hex", "The hex"},
1008+
{RPCResult::Type::NUM, "reqSigs", /* optional */ true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Number of required signatures"},
1009+
{RPCResult::Type::STR, "type", "The type, eg 'pubkeyhash'"},
1010+
{RPCResult::Type::STR, "address", /* optional */ true, "bitcoin address (only if a well-defined address exists)"},
1011+
{RPCResult::Type::ARR, "addresses", /* optional */ true, "(DEPRECATED, returned only if config option -deprecatedrpc=addresses is passed) Array of bitcoin addresses",
1012+
{
1013+
{RPCResult::Type::STR, "address", "bitcoin address"},
1014+
}},
1015+
}},
1016+
}},
1017+
}},
1018+
}},
1019+
}},
1020+
}},
1021+
}},
9861022
},
9871023
RPCExamples{
9881024
HelpExampleCli("getblock", "\"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09\"")

0 commit comments

Comments
 (0)