Get Solana epochs metadata
curl --request GET \
--url https://api.kamino.finance/epochsconst options = {method: 'GET'};
fetch('https://api.kamino.finance/epochs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/epochs"
response = requests.get(url)
print(response.text)false[
{
"epoch": 678,
"firstSlot": "123456789",
"lastSlot": "123999999",
"startBlockTime": "2025-03-01T12:00:00.000Z",
"endBlockTime": "2025-03-01T12:00:00.000Z"
}
]{
"error": "An internal error occurred"
}Other
Get Solana epochs metadata
Fetches all epoch start and end times, first/last slot numbers, and epoch identifiers
GET
/
epochs
Get Solana epochs metadata
curl --request GET \
--url https://api.kamino.finance/epochsconst options = {method: 'GET'};
fetch('https://api.kamino.finance/epochs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/epochs"
response = requests.get(url)
print(response.text)false[
{
"epoch": 678,
"firstSlot": "123456789",
"lastSlot": "123999999",
"startBlockTime": "2025-03-01T12:00:00.000Z",
"endBlockTime": "2025-03-01T12:00:00.000Z"
}
]{
"error": "An internal error occurred"
}Response
OK
Epoch identifier
Example:
678
First slot number of the epoch
Example:
"123456789"
Last slot number of the epoch
Example:
"123999999"
UTC timestamp when the epoch started
Example:
"2025-03-01T12:00:00.000Z"
UTC timestamp when the epoch ended
Example:
"2025-03-01T12:00:00.000Z"