v1

latestOpenAPI 3.0.0MPL-2.02026-07-17153889.2 KB
Scripts

Get Script by Hash

Retrieve the raw script (i.e. full resolved script) associated to a given script hash digest.

<sup><strong>NOTE</strong></sup> <br/>

Raw scripts aren't exact pre-image of their hash digest. Before hashing, scripts are prefixed with a certain discriminator byte depending on the language. For instance, any native script is prefixed with 00 before hashing.

Here's a table summarizing all discriminators:

LanguageDiscriminator Byte
native00
plutus:v101
plutus:v202
get/scripts/{script-hash}

Path parameters

script_hashstring required
Example:3097...9ded

A script blake2b-224 hash digest of a script.

Response

OK