Stake pool blocks
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/pools/{pool_id}/blocks \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/pools/{pool_id}/blocks"
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/pools/{pool_id}/blocks', 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/pools/{pool_id}/blocks",
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/pools/{pool_id}/blocks"
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/pools/{pool_id}/blocks")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/pools/{pool_id}/blocks")
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": [
{
"epoch_no": 241,
"epoch_slot": 416235,
"abs_slot": 19165035,
"block_height": 5213445,
"block_hash": "6ecd67bb8515cf7ab82c5c0c4a3f6e99c390fdfaaffca4bd7ab0a3365c5327ce",
"block_time": 1610731326
},
{
"epoch_no": 243,
"epoch_slot": 166752,
"abs_slot": 19779552,
"block_height": 5243962,
"block_hash": "3ad8d2bafc5ad3e7fed82318f03f7b4ae221b5c9ca0b20b47b72a96bdf82a71b",
"block_time": 1611345843
},
{
"epoch_no": 280,
"epoch_slot": 401137,
"abs_slot": 35997937,
"block_height": 6042598,
"block_hash": "4a0572125268fd327258a6fea5c35bdc1e619bd81d542c36c8cf0a8a92214e21",
"block_time": 1627564228
},
{
"epoch_no": 281,
"epoch_slot": 105848,
"abs_slot": 36134648,
"block_height": 6049318,
"block_hash": "0cdef0adaf13b7db4a469637439b7847ba822bc05c94710ca4f517b57ac0f3a8",
"block_time": 1627700939
},
{
"epoch_no": 281,
"epoch_slot": 246962,
"abs_slot": 36275762,
"block_height": 6056368,
"block_hash": "8590d0e47ed7d50a39fed48e9f556c99f644626a08a90d04198810bff8c41bac",
"block_time": 1627842053
}
],
"last_updated": {
"timestamp": "2022-10-10 20:25:28",
"block_hash": "6d0c6e1c0966c5ba824fedd4dfa963ee2cab1091e33e3c76551d1dbae50ccd25",
"block_slot": 96404672
},
"next_cursor": "AAAAAAAAAAA"
}Pools
Stake pool blocks
Get list of blocks produced by a specific Cardano stake pool with timestamps and epoch information.
GET
/
pools
/
{pool_id}
/
blocks
Stake pool blocks
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/pools/{pool_id}/blocks \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/pools/{pool_id}/blocks"
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/pools/{pool_id}/blocks', 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/pools/{pool_id}/blocks",
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/pools/{pool_id}/blocks"
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/pools/{pool_id}/blocks")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/pools/{pool_id}/blocks")
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": [
{
"epoch_no": 241,
"epoch_slot": 416235,
"abs_slot": 19165035,
"block_height": 5213445,
"block_hash": "6ecd67bb8515cf7ab82c5c0c4a3f6e99c390fdfaaffca4bd7ab0a3365c5327ce",
"block_time": 1610731326
},
{
"epoch_no": 243,
"epoch_slot": 166752,
"abs_slot": 19779552,
"block_height": 5243962,
"block_hash": "3ad8d2bafc5ad3e7fed82318f03f7b4ae221b5c9ca0b20b47b72a96bdf82a71b",
"block_time": 1611345843
},
{
"epoch_no": 280,
"epoch_slot": 401137,
"abs_slot": 35997937,
"block_height": 6042598,
"block_hash": "4a0572125268fd327258a6fea5c35bdc1e619bd81d542c36c8cf0a8a92214e21",
"block_time": 1627564228
},
{
"epoch_no": 281,
"epoch_slot": 105848,
"abs_slot": 36134648,
"block_height": 6049318,
"block_hash": "0cdef0adaf13b7db4a469637439b7847ba822bc05c94710ca4f517b57ac0f3a8",
"block_time": 1627700939
},
{
"epoch_no": 281,
"epoch_slot": 246962,
"abs_slot": 36275762,
"block_height": 6056368,
"block_hash": "8590d0e47ed7d50a39fed48e9f556c99f644626a08a90d04198810bff8c41bac",
"block_time": 1627842053
}
],
"last_updated": {
"timestamp": "2022-10-10 20:25:28",
"block_hash": "6d0c6e1c0966c5ba824fedd4dfa963ee2cab1091e33e3c76551d1dbae50ccd25",
"block_slot": 96404672
},
"next_cursor": "AAAAAAAAAAA"
}Authorizations
Project API Key
Path Parameters
Pool ID in bech32 format
Query Parameters
Epoch number to fetch results for
Required range:
x >= 0The max number of results per page
Required range:
x >= 0The order in which the results are sorted (by block absolute slot)
Available options:
asc, desc Pagination cursor string, use the cursor included in a page of results to fetch the next page
Response
Return information about blocks minted by a given pool for all epochs (or epoch_no if provided)
A paginated response. Pass in the next_cursor in a subsequent request as the cursor query parameter to fetch the next page of results.
Was this page helpful?

