rpc: add decoded tx details to gettransaction with extra wallet fields

This commit is contained in:
Matthew Zipkin
2025-05-15 14:18:11 -04:00
parent ad1c3bdba5
commit 060bb55508
4 changed files with 18 additions and 13 deletions

View File

@@ -242,7 +242,7 @@ static RPCHelpMan getrawtransaction()
{RPCResult::Type::NUM, "time", /*optional=*/true, "Same as \"blocktime\""},
{RPCResult::Type::STR_HEX, "hex", "The serialized, hex-encoded data for 'txid'"},
},
DecodeTxDoc(/*txid_field_doc=*/"The transaction id (same as provided)")),
DecodeTxDoc(/*txid_field_doc=*/"The transaction id (same as provided)", /*wallet=*/false)),
},
RPCResult{"for verbosity = 2",
RPCResult::Type::OBJ, "", "",
@@ -415,7 +415,7 @@ static RPCHelpMan decoderawtransaction()
},
RPCResult{
RPCResult::Type::OBJ, "", "",
DecodeTxDoc(/*txid_field_doc=*/"The transaction id"),
DecodeTxDoc(/*txid_field_doc=*/"The transaction id", /*wallet=*/false),
},
RPCExamples{
HelpExampleCli("decoderawtransaction", "\"hexstring\"")