getEpochSchedule
Returns epoch schedule information from this cluster's genesis config

Parameters

None

Returns

  • slotsPerEpoch: <u64>, the maximum number of slots in each epoch
  • leaderScheduleSlotOffset: <u64>, the number of slots before beginning of an epoch to calculate a leader schedule for that epoch
  • warmup: <bool>, whether epochs start short and grow
  • firstNormalEpoch: <u64>, first normal-length epoch => log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH)
  • firstNormalSlot: <u64> => minimum slots per epoch * (2.pow(firstNormalEpoch) - 1)

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{"jsonrpc":"2.0","id":1, "method":"getEpochSchedule"}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"firstNormalEpoch": 0,
5
"firstNormalSlot": 0,
6
"leaderScheduleSlotOffset": 432000,
7
"slotsPerEpoch": 432000,
8
"warmup": false
9
},
10
"id": 1
11
}
Copied!