decodescript
Decodes a hex-encoded script and provides detailed information about it.
Path parameters
apiKey
Request
This endpoint expects an object.
hexstring
The hex-encoded script.
Response
Decoded script information.
asm
The script public key in assembly form.
desc
Output descriptor for the script.
address
The derived Bitcoin address (if applicable).
type
Output type (e.g., nonstandard, pubkeyhash, scripthash, witness_v0_keyhash).
p2sh
P2SH address wrapping this script, if applicable.