decode_script
Decode hex-encoded scriptPubKey to determine its script type and generate the corresponding address, with optional network override.
Instructions
Decode a scriptPubKey to its type and address. Works offline.
Args: script_hex: The hex-encoded script. network: Override the server's network for address rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | ||
| script_hex | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |