Skip to main content

Script JSON

GET /scripts/:script_hash/json

Authorization

name: project_idtype: apiKeyin: headerdescription: There are multiple token types available based on network you choose
when creating a Blockfrost a project, for a list of token types
see available networks.

JSON representation of a timelock script

Request

Path Parameters

    script_hash string required

    Hash of the script

    Example: e1457a0c47dfb7a2f6b8fbb059bdceab163c05d34f195b87b9f2b30e
Responses

Return the JSON representation of a timelock script


Schema
    json objectrequired

    JSON contents of the timelock script, null for plutus scripts

    anyOf

  • string
GET /scripts/:script_hash/json

Authorization

name: project_idtype: apiKeyin: headerdescription: There are multiple token types available based on network you choose
when creating a Blockfrost a project, for a list of token types
see available networks.

Request

Base URL
https://cardano-mainnet.blockfrost.io/api/v0
project_id
script_hash — path required
curl / cURL
curl -L -X GET 'https://cardano-mainnet.blockfrost.io/api/v0/scripts/:script_hash/json' \
-H 'Accept: application/json' \
-H 'project_id: <API_KEY_VALUE>'