Get median Solana slot duration
curl --request GET \
--url https://api.kamino.finance/slots/durationconst options = {method: 'GET'};
fetch('https://api.kamino.finance/slots/duration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/slots/duration"
response = requests.get(url)
print(response.text)false{
"recentSlotDurationInMs": 400
}{
"error": "An internal error occurred"
}Other
Get median Solana slot duration
Fetches the median duration of a recent Solana slot (in milliseconds) from the last three epochs
GET
/
slots
/
duration
Get median Solana slot duration
curl --request GET \
--url https://api.kamino.finance/slots/durationconst options = {method: 'GET'};
fetch('https://api.kamino.finance/slots/duration', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.kamino.finance/slots/duration"
response = requests.get(url)
print(response.text)false{
"recentSlotDurationInMs": 400
}{
"error": "An internal error occurred"
}Response
OK
Slot duration in milliseconds calculated from the median duration of the last 3 epoch slot durations
Example:
400