Block information
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height} \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
"height": 7867166,
"absolute_slot": 73867237,
"timestamp": "2022-10-10 20:25:28",
"epoch": 368,
"epoch_slot": 254437,
"block_producer": "pool103w4na57zyunn2s7r8cgrnqgsn3tskj4w69yx3alx4sezphv53t",
"confirmations": 0,
"tx_hashes": [
"31a84c3c6200bec2498b18c42f882fa690cd0d32a9c84a2019eb5cc42f5971d0",
"a90e31b3de59452659617c351e5f746b819cb8b026bf945dd41b4cc199bcc8c9",
"dbe30d4f6f42342d7cbfa950bb330cd111bea525b17c2ca115fcec19f1f2e55c",
"836c720301e2f463fcaf3ffa746213c03616cc003a1802ddb1243e738140b109",
"660c2a41c5a6618db2a514fe0d84bd2570e8f2e0ed8e3ac9b810f5f8230c171d",
"357a18477c72d771df77736f83abba44fa826a3e36bc31bb81ca4e2f06475cc6",
"a79137811a11914fa6b5543871496e2efbbfd4fb63e3ef808fbbf4247a194f7f",
"f89ad271629e827e6722617cce03f7c966f37b9d9143ab356600f31591b902b0",
"ae2cc8e8bf536899acb036c7c560c5658abfdffb84a35f18e9a8cf72fb160e35",
"b84082a6c4fd731f2a4263d5e99f205798d4356ee5386633ef47727ba2a345fd",
"6dc497eb7acf460a491cff25ca22dcdad1fa42bb133262afc20c828d7003b439",
"ba7464e4d1c8610e3bef857ddaf7e52083291b5e30750e6bce7ebfeef07f4790",
"0344e44a44c644f782088ca7e1143304b20f5cd3e5a4c77748bf4efe5aea06f8",
"1eec3e58f7001c5b875456232e79cbfdb64e2be0e2b32c06f5c07cab38069634"
],
"total_fees": 4195080,
"total_ex_units": {
"mem": 7191340,
"steps": 2947856708
},
"script_invocations": 3,
"size": 27430,
"previous_block": "3c1778df54aedc9e6226d31cc316a8b5b7912800f909b62f77a46ad61fa10a0c",
"total_output_lovelace": "102300616446",
"era": "vasil",
"protocol_version": [
7,
0
],
"vrf_key": "f913889ad4f696f436dfa19803ebee2219cee59daba879ab9591c75fc8ee33e4",
"operational_certificate": {
"hot_vkey": "278c4f65bdca2498882a47eb876f023a86bc75b9307bd80ac361587f1c0fc1f1",
"sequence_number": 4,
"kes_period": 527,
"kes_signature": "39a017fbd95a909a3bcca2f368fcc26e7fab64fb09dc48c7d4a99db5bd68b6280a61fe66da3f048b237754d48cfa1c3f954895f4fe41cb71c296997b53dd6501"
}
},
"last_updated": {
"timestamp": "2022-10-10 20:25:28",
"block_hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
"block_slot": 73867237
}
}Blocks
Block information
Get detailed information about a specific Cardano block by hash or height including transactions and metadata.
GET
/
blocks
/
{hash_or_height}
Block information
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height} \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}"
headers = {"api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'api-key': '<api-key>'}};
fetch('https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/blocks/{hash_or_height}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
"height": 7867166,
"absolute_slot": 73867237,
"timestamp": "2022-10-10 20:25:28",
"epoch": 368,
"epoch_slot": 254437,
"block_producer": "pool103w4na57zyunn2s7r8cgrnqgsn3tskj4w69yx3alx4sezphv53t",
"confirmations": 0,
"tx_hashes": [
"31a84c3c6200bec2498b18c42f882fa690cd0d32a9c84a2019eb5cc42f5971d0",
"a90e31b3de59452659617c351e5f746b819cb8b026bf945dd41b4cc199bcc8c9",
"dbe30d4f6f42342d7cbfa950bb330cd111bea525b17c2ca115fcec19f1f2e55c",
"836c720301e2f463fcaf3ffa746213c03616cc003a1802ddb1243e738140b109",
"660c2a41c5a6618db2a514fe0d84bd2570e8f2e0ed8e3ac9b810f5f8230c171d",
"357a18477c72d771df77736f83abba44fa826a3e36bc31bb81ca4e2f06475cc6",
"a79137811a11914fa6b5543871496e2efbbfd4fb63e3ef808fbbf4247a194f7f",
"f89ad271629e827e6722617cce03f7c966f37b9d9143ab356600f31591b902b0",
"ae2cc8e8bf536899acb036c7c560c5658abfdffb84a35f18e9a8cf72fb160e35",
"b84082a6c4fd731f2a4263d5e99f205798d4356ee5386633ef47727ba2a345fd",
"6dc497eb7acf460a491cff25ca22dcdad1fa42bb133262afc20c828d7003b439",
"ba7464e4d1c8610e3bef857ddaf7e52083291b5e30750e6bce7ebfeef07f4790",
"0344e44a44c644f782088ca7e1143304b20f5cd3e5a4c77748bf4efe5aea06f8",
"1eec3e58f7001c5b875456232e79cbfdb64e2be0e2b32c06f5c07cab38069634"
],
"total_fees": 4195080,
"total_ex_units": {
"mem": 7191340,
"steps": 2947856708
},
"script_invocations": 3,
"size": 27430,
"previous_block": "3c1778df54aedc9e6226d31cc316a8b5b7912800f909b62f77a46ad61fa10a0c",
"total_output_lovelace": "102300616446",
"era": "vasil",
"protocol_version": [
7,
0
],
"vrf_key": "f913889ad4f696f436dfa19803ebee2219cee59daba879ab9591c75fc8ee33e4",
"operational_certificate": {
"hot_vkey": "278c4f65bdca2498882a47eb876f023a86bc75b9307bd80ac361587f1c0fc1f1",
"sequence_number": 4,
"kes_period": 527,
"kes_signature": "39a017fbd95a909a3bcca2f368fcc26e7fab64fb09dc48c7d4a99db5bd68b6280a61fe66da3f048b237754d48cfa1c3f954895f4fe41cb71c296997b53dd6501"
}
},
"last_updated": {
"timestamp": "2022-10-10 20:25:28",
"block_hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
"block_slot": 73867237
}
}Authorizations
Project API Key
Headers
Large numbers returned as strings if set to true
Path Parameters
Block height or hex encoded block hash
Response
Summary of information regarding the specified block
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.
Was this page helpful?
⌘I

