@@ -179,6 +179,7 @@ static RPCHelpMan getrawtransaction()
179
179
{RPCResult::Type::OBJ, " scriptPubKey" , " " ,
180
180
{
181
181
{RPCResult::Type::STR, " asm" , " the asm" },
182
+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the output" },
182
183
{RPCResult::Type::STR, " hex" , " the hex" },
183
184
{RPCResult::Type::STR, " type" , " The type, eg 'pubkeyhash'" },
184
185
{RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
@@ -506,6 +507,7 @@ static RPCHelpMan decoderawtransaction()
506
507
{RPCResult::Type::OBJ, " scriptPubKey" , " " ,
507
508
{
508
509
{RPCResult::Type::STR, " asm" , " the asm" },
510
+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the output" },
509
511
{RPCResult::Type::STR_HEX, " hex" , " the hex" },
510
512
{RPCResult::Type::STR, " type" , " The type, eg 'pubkeyhash'" },
511
513
{RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
@@ -561,6 +563,7 @@ static RPCHelpMan decodescript()
561
563
RPCResult::Type::OBJ, " " , " " ,
562
564
{
563
565
{RPCResult::Type::STR, " asm" , " Script public key" },
566
+ {RPCResult::Type::STR, " desc" , " Inferred descriptor for the script" },
564
567
{RPCResult::Type::STR, " type" , " The output type (e.g. " + GetAllOutputTypes () + " )" },
565
568
{RPCResult::Type::STR, " address" , /* optional=*/ true , " The Bitcoin address (only if a well-defined address exists)" },
566
569
{RPCResult::Type::STR, " p2sh" , /* optional=*/ true ,
@@ -572,6 +575,7 @@ static RPCHelpMan decodescript()
572
575
{RPCResult::Type::STR_HEX, " hex" , " Hex string of the script public key" },
573
576
{RPCResult::Type::STR, " type" , " The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)" },
574
577
{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" },
575
579
{RPCResult::Type::STR, " p2sh-segwit" , " address of the P2SH script wrapping this witness redeem script" },
576
580
}},
577
581
},
0 commit comments