Era summary
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/era-summaries \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/era-summaries"
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/era-summaries', 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/era-summaries",
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/era-summaries"
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/era-summaries")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/era-summaries")
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": [
{
"start": {
"time": {
"seconds": 0
},
"slot": 0,
"epoch": 0
},
"end": {
"time": {
"seconds": 1728000
},
"slot": 86400,
"epoch": 4
},
"parameters": {
"epoch_length": 21600,
"slot_length": {
"milliseconds": 20000
},
"safe_zone": 4320
}
},
{
"start": {
"time": {
"seconds": 1728000
},
"slot": 86400,
"epoch": 4
},
"end": {
"time": {
"seconds": 2160000
},
"slot": 518400,
"epoch": 5
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 2160000
},
"slot": 518400,
"epoch": 5
},
"end": {
"time": {
"seconds": 2592000
},
"slot": 950400,
"epoch": 6
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 2592000
},
"slot": 950400,
"epoch": 6
},
"end": {
"time": {
"seconds": 3024000
},
"slot": 1382400,
"epoch": 7
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 3024000
},
"slot": 1382400,
"epoch": 7
},
"end": {
"time": {
"seconds": 5184000
},
"slot": 3542400,
"epoch": 12
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 5184000
},
"slot": 3542400,
"epoch": 12
},
"end": {
"time": {
"seconds": 70416000
},
"slot": 68774400,
"epoch": 163
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 70416000
},
"slot": 68774400,
"epoch": 163
},
"end": {
"time": {
"seconds": 71280000
},
"slot": 69638400,
"epoch": 165
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
}
],
"last_updated": {
"timestamp": "2024-08-30 15:37:05",
"block_hash": "cffcdbe42399a72449325dbb8f207d84c86b9609ec36e45b67e9bc538ecdc6d6",
"block_slot": 69349025
}
}General
Era summary
Get summary information about all Cardano blockchain eras including their start times and parameters.
GET
/
era-summaries
Era summary
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/era-summaries \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/era-summaries"
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/era-summaries', 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/era-summaries",
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/era-summaries"
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/era-summaries")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/era-summaries")
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": [
{
"start": {
"time": {
"seconds": 0
},
"slot": 0,
"epoch": 0
},
"end": {
"time": {
"seconds": 1728000
},
"slot": 86400,
"epoch": 4
},
"parameters": {
"epoch_length": 21600,
"slot_length": {
"milliseconds": 20000
},
"safe_zone": 4320
}
},
{
"start": {
"time": {
"seconds": 1728000
},
"slot": 86400,
"epoch": 4
},
"end": {
"time": {
"seconds": 2160000
},
"slot": 518400,
"epoch": 5
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 2160000
},
"slot": 518400,
"epoch": 5
},
"end": {
"time": {
"seconds": 2592000
},
"slot": 950400,
"epoch": 6
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 2592000
},
"slot": 950400,
"epoch": 6
},
"end": {
"time": {
"seconds": 3024000
},
"slot": 1382400,
"epoch": 7
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 3024000
},
"slot": 1382400,
"epoch": 7
},
"end": {
"time": {
"seconds": 5184000
},
"slot": 3542400,
"epoch": 12
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 5184000
},
"slot": 3542400,
"epoch": 12
},
"end": {
"time": {
"seconds": 70416000
},
"slot": 68774400,
"epoch": 163
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
},
{
"start": {
"time": {
"seconds": 70416000
},
"slot": 68774400,
"epoch": 163
},
"end": {
"time": {
"seconds": 71280000
},
"slot": 69638400,
"epoch": 165
},
"parameters": {
"epoch_length": 432000,
"slot_length": {
"milliseconds": 1000
},
"safe_zone": 129600
}
}
],
"last_updated": {
"timestamp": "2024-08-30 15:37:05",
"block_hash": "cffcdbe42399a72449325dbb8f207d84c86b9609ec36e45b67e9bc538ecdc6d6",
"block_slot": 69349025
}
}Authorizations
Project API Key
Response
Get era summaries
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

