getEpochSchedule RPC Method
Returns information about the current epoch
params
None
result
object
The result field will be an object with the following fields:slotsPerEpoch
The maximum number of slots in each epoch
leaderScheduleSlotOffset
The number of slots before beginning of an epoch to calculate a leader schedule for that epoch
warmup
Whether epochs start short and grow
firstNormalEpoch
First normal-length epoch,
log2(slotsPerEpoch)
-log2(MINIMUM_SLOTS_PER_EPOCH)
firstNormalSlot
Minimum number of slots in an epoch,
MINIMUM_SLOTS_PER_EPOCH * (2.pow(firstNormalEpoch) - 1)
cURL
curl https://us-seattle.openverse.network/api -s -X \
POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getEpochSchedule"
}
'
Response
{
"jsonrpc": "2.0",
"result": {
"firstNormalEpoch": 8,
"firstNormalSlot": 8160,
"leaderScheduleSlotOffset": 8192,
"slotsPerEpoch": 8192,
"warmup": true
},
"id": 1
}