Skip to content

Commit 72284b5

Browse files
committed
fix: add missing RPC help result for RPC getrawtransactionmulti
1 parent 7d6b606 commit 72284b5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/rpc/rawtransaction.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,19 @@ static RPCHelpMan getrawtransactionmulti() {
358358
{"verbose", RPCArg::Type::BOOL, RPCArg::Default{false},
359359
"If false, return a string, otherwise return a json object"},
360360
},
361-
// TODO: replace RPCResults to proper annotation
362-
RPCResults{},
361+
RPCResult{
362+
RPCResult::Type::OBJ, "", "",
363+
{
364+
{"if verbose is not set or set to false",
365+
RPCResult::Type::STR_HEX, "txid", "The serialized, hex-encoded data for 'txid'"},
366+
{"if verbose is set to true",
367+
RPCResult::Type::OBJ, "txid", "The decoded network-serialized transaction.",
368+
{
369+
{RPCResult::Type::ELISION, "", "The layout is the same as the output of getrawtransaction."},
370+
}},
371+
{"if tx is unknown", RPCResult::Type::STR, "txid", "None"},
372+
},
373+
},
363374
RPCExamples{
364375
HelpExampleCli("getrawtransactionmulti",
365376
R"('{"blockhash1":["txid1","txid2"], "0":["txid3"]}')")

0 commit comments

Comments
 (0)