@@ -179,6 +179,7 @@ static RPCHelpMan getrawtransaction()
179179 {RPCResult::Type::OBJ, " scriptPubKey" , " " ,
180180 {
181181 {RPCResult::Type::STR, " asm" , " the asm" },
182+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the output" },
182183 {RPCResult::Type::STR, " hex" , " the hex" },
183184 {RPCResult::Type::STR, " type" , " The type, eg 'pubkeyhash'" },
184185 {RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
@@ -506,6 +507,7 @@ static RPCHelpMan decoderawtransaction()
506507 {RPCResult::Type::OBJ, " scriptPubKey" , " " ,
507508 {
508509 {RPCResult::Type::STR, " asm" , " the asm" },
510+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the output" },
509511 {RPCResult::Type::STR_HEX, " hex" , " the hex" },
510512 {RPCResult::Type::STR, " type" , " The type, eg 'pubkeyhash'" },
511513 {RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
@@ -561,6 +563,7 @@ static RPCHelpMan decodescript()
561563 RPCResult::Type::OBJ, " " , " " ,
562564 {
563565 {RPCResult::Type::STR, " asm" , " Script public key" },
566+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the script" },
564567 {RPCResult::Type::STR, " type" , " The output type (e.g. " + GetAllOutputTypes () + " )" },
565568 {RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
566569 {RPCResult::Type::STR, " p2sh" , /* optional=*/ true ,
@@ -572,6 +575,7 @@ static RPCHelpMan decodescript()
572575 {RPCResult::Type::STR_HEX, " hex" , " Hex string of the script public key" },
573576 {RPCResult::Type::STR, " type" , " The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)" },
574577 {RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
578+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the script" },
575579 {RPCResult::Type::STR, " p2sh-segwit" , " address of the P2SH script wrapping this witness redeem script" },
576580 }},
577581 },
0 commit comments