Home

Get script JSON representation

GET
https://ada-blockfrost.nownodes.io/scripts/{script}/json

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the JSON representation of a native (timelock) script. For Plutus scripts the response may contain a wrapper indicating the Plutus version.

Parameters

scriptstringrequiredpath

Script hash identifier.

Response

200OK

HTTP 200 response for getScriptJson.

400Bad Request

Bad Request. The request is malformed or contains invalid parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or backend failed while processing the request.