You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "the hex-encoded script"},
542
-
},
543
-
RPCResult{
544
-
RPCResult::Type::OBJ, "", "",
545
-
{
546
-
{RPCResult::Type::STR, "asm", "Script public key"},
547
-
{RPCResult::Type::STR, "type", "The output type (e.g. "+GetAllOutputTypes()+")"},
548
-
{RPCResult::Type::STR, "address", /* optional */true, "The Bitcoin address (only if a well-defined address exists)"},
549
-
{RPCResult::Type::STR, "p2sh", /* optional */true, "address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH)"},
550
-
{RPCResult::Type::OBJ, "segwit", /* optional */true, "Result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)",
551
-
{
552
-
{RPCResult::Type::STR, "asm", "String representation of the script public key"},
553
-
{RPCResult::Type::STR_HEX, "hex", "Hex string of the script public key"},
554
-
{RPCResult::Type::STR, "type", "The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)"},
555
-
{RPCResult::Type::STR, "address", /* optional */true, "The Bitcoin address (only if a well-defined address exists)"},
556
-
{RPCResult::Type::STR, "p2sh-segwit", "address of the P2SH script wrapping this witness redeem script"},
557
-
}},
558
-
}
559
-
},
560
-
RPCExamples{
561
-
HelpExampleCli("decodescript", "\"hexstring\"")
562
-
+ HelpExampleRpc("decodescript", "\"hexstring\"")
563
-
},
538
+
return RPCHelpMan{
539
+
"decodescript",
540
+
"\nDecode a hex-encoded script.\n",
541
+
{
542
+
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "the hex-encoded script"},
543
+
},
544
+
RPCResult{
545
+
RPCResult::Type::OBJ, "", "",
546
+
{
547
+
{RPCResult::Type::STR, "asm", "Script public key"},
548
+
{RPCResult::Type::STR, "type", "The output type (e.g. " + GetAllOutputTypes() + ")"},
549
+
{RPCResult::Type::STR, "address", /* optional */true, "The Bitcoin address (only if a well-defined address exists)"},
550
+
{RPCResult::Type::STR, "p2sh", /* optional */true, "address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH)"},
551
+
{RPCResult::Type::OBJ, "segwit", /* optional */true, "Result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)",
552
+
{
553
+
{RPCResult::Type::STR, "asm", "String representation of the script public key"},
554
+
{RPCResult::Type::STR_HEX, "hex", "Hex string of the script public key"},
555
+
{RPCResult::Type::STR, "type", "The type of the script public key (e.g. witness_v0_keyhash or witness_v0_scripthash)"},
556
+
{RPCResult::Type::STR, "address", /* optional */true, "The Bitcoin address (only if a well-defined address exists)"},
557
+
{RPCResult::Type::STR, "p2sh-segwit", "address of the P2SH script wrapping this witness redeem script"},
0 commit comments