Get recent 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 recent Solana slot duration
Fetches the duration of a recent Solana slot (in milliseconds) derived from RPC performance samples over approximately the last hour
GET
/
slots
/
duration
Get recent 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 derived from recent RPC performance samples over approximately the last hour
Example:
400