GET
/
scripts
/
{script_hash}
Script by script hash
curl --request GET \
  --url https://mainnet.gomaestro-api.org/v1/scripts/{script_hash} \
  --header 'api-key: <api-key>'
{
"data": {
"hash": "f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a",
"type": "native",
"bytes": "8200581c4da965a049dfd15ed1ee19fba6e2974a0b79fc416dd1796a1f97f5e1",
"json": {
"keyHash": "4da965a049dfd15ed1ee19fba6e2974a0b79fc416dd1796a1f97f5e1",
"type": "sig"
},
"first_seen": {
"tx_hash": "257916e7ae112cf16f27218e41bfa37c018bab922354201b3b38c9a24c35ab33",
"slot": 55718892,
"timestamp": "2022-03-14 19:13:03"
}
},
"last_updated": {
"timestamp": "2023-10-18 07:30:52",
"block_hash": "0e1e924710135acfe200ab13d290bd282a67584fd54456f0dcac0aeaa38bb2c2",
"block_slot": 106047961
}
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

script_hash
string
required

Hex encoded script hash

Response

200
application/json

Script corresponding to the provided script hash

Timestamped response. Returns the endpoint response data along with the chain-tip of the indexer, which details at which point in the chain's history the data was correct as-of.