decodescript

Decodes a hex-encoded script and provides detailed information about it.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
hexstringstringRequiredformat: "^[a-fA-F0-9]+$"

The hex-encoded script.

Response

Decoded script information.

asmstringOptional

The script public key in assembly form.

descstringOptional

Output descriptor for the script.

addressstringOptional

The derived Bitcoin address (if applicable).

typestringOptional

Output type (e.g., nonstandard, pubkeyhash, scripthash, witness_v0_keyhash).

p2shstringOptional

P2SH address wrapping this script, if applicable.