# Decode hex script Decode a hex-encoded script. Endpoint: POST /daemon/decodescript Version: 6.6.1 ## Request fields (text/plain): - `hex` (string) Hex-encoded transaction ## Response 200 fields (application/json): - `status` (string) Explanation of status Enum: "success", "error" - `data` (object) - `data.asm` (string) Script public key - `data.reqSigs` (integer) The required signatures - `data.type` (string) The output type - `data.addresses` (array) - `data.p2sh` (string) Script address