Cardano » Scripts

UTXOs holding the script as a reference script

List of UTXOs that hold the given script as a reference script (CIP-33). These outputs can be used as reference inputs (CIP-31) in a transaction to execute the script without including its full bytes. A single script may be held by multiple UTXOs, potentially at different addresses.

get/scripts/{script_hash}/utxos

Path parameters

script_hashstring required

Hash of the script

Query parameters

countinteger

The number of results displayed on one page.

pageinteger

The page number for listing the results.

order'asc' | 'desc'

The ordering of items from the point of view of the blockchain, not the page listing itself. By default, we return oldest first, newest last.

Response

Return the UTXOs holding the script as a reference script

addressstring required

Bech32 encoded address of the UTXO holding the reference script

tx_hashstring required

Transaction hash of the UTXO

output_indexinteger required

UTXO index in the transaction

blockstring required

Block hash of the UTXO

data_hashstring nullable required

The hash of the transaction output datum

inline_datumstring nullable required

CBOR encoded inline datum

reference_script_hashstring required

The hash of the reference script of the output. Equals the queried script hash.

Example response

[
  {
    "address": "addr1qxqs59lphg8g6qndelq8xwqn60ag3aeyfcp33c2kdp46a09re5df3pzwwmyq946axfcejy5n4x0y99wqpgtp2gd0k09qsgy6pz",
    "tx_hash": "39a7a284c2a0948189dc45dec670211cd4d72f7b66c5726c08d9b3df11e44d58",
    "output_index": 0,
    "amount": [
      {
        "unit": "lovelace",
        "quantity": "42000000"
      }
    ],
    "block": "7eb8e27d18686c7db9a18f8bbcfe34e3fed6e047afaa2d969904d15e934847e6",
    "data_hash": null,
    "inline_datum": null,
    "reference_script_hash": "13a3efd825703a352a8f71f4e2758d08c28c564e8dfcce9f77776ad1"
  }
]