Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Cardano Cardano » Scripts API

The Cardano » Scripts API from Cardano — 7 operation(s) for cardano » scripts.

Cardano Cardano » Scripts API is one of 21 APIs that Cardano publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Cardano » Scripts. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and rate-limit docs.

This API exposes 7 operations across 7 paths, and defines 7 schemas. It is described by OpenAPI 3.0.3, at version 0.1.89.

Requests are made against 4 base URLs: https://cardano-mainnet.blockfrost.io/api/v0, https://cardano-preprod.blockfrost.io/api/v0, https://cardano-preview.blockfrost.io/api/v0, https://localhost:3000.

7 operations 7 paths 7 schemas 7 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
0.1.89
Base URL
https://cardano-mainnet.blockfrost.io/api/v0
Authentication
API Key
License
Terms of Service
Resource Areas
1

Authentication & Security 1

Cardano Cardano » Scripts API declares 1 security scheme for authenticating requests. An API key is passed in the header as project_id (project_id). By default, every request must be authenticated.

  • project_id — 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.

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 7 GET. Each is listed below with its method, path, parameters, and response codes.

Cardano » Scripts 7
GET
/scripts
Scripts
3 params → 200400403404418429500
GET
/scripts/{script_hash}
Specific script
1 param → 200400403404418429500
GET
/scripts/{script_hash}/json
Script JSON
1 param → 200400403404418429500
GET
/scripts/{script_hash}/cbor
Script CBOR
1 param → 200400403404418429500
GET
/scripts/{script_hash}/redeemers
Redeemers of a specific script
4 params → 200400403404418429500
GET
/scripts/datum/{datum_hash}
Datum value
1 param → 200400403404418429500
GET
/scripts/datum/{datum_hash}/cbor
Datum CBOR value
1 param → 200400403404418429500

Schemas 7

The contract defines 7 schemas that model the data the API accepts and returns. The most detailed are script (3 properties), script_cbor (1 property), script_datum (1 property), script_json (1 property). Each schema is shown below with its type and property counts.

script
object
3 properties 3 required
script_datum_cbor
object
1 property 1 required
script_json
object
1 property 1 required
script_datum
object
1 property 1 required
script_redeemers
array
script_cbor
object
1 property 1 required
scripts
array

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

cardano-cardano-scripts-api-openapi.yml Raw ↑

Other APIs Cardano publishes across the network.

Blockfrost IPFS API
Cardano Cardano » Accounts API
Cardano Cardano » Addresses API
Cardano Cardano » Assets API
Cardano Cardano » Blocks API
Cardano Cardano » Epochs API
Cardano Cardano » Governance API
Cardano Cardano » Ledger API
Cardano Cardano » Mempool API
Cardano Cardano » Metadata API
Cardano Cardano » Network API
Cardano Cardano » Pools API