getEpochSchedule
Returns epoch schedule information from this cluster's genesis config.
https://api.1inch.com/web3/501
Supported on: Solana
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getEpochSchedule',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Epoch Schedule Response
Epoch Schedule Response
object firstNormalEpoch
* integer The first normal-length epoch, log2(slotsPerEpoch) - log2(MINIMUM_SLOTS_PER_EPOCH)
firstNormalSlot
* integer MINIMUM_SLOTS_PER_EPOCH * (2.pow(firstNormalEpoch) - 1)
leaderScheduleSlotOffset
* integer The number of slots before beginning of an epoch to calculate a leader schedule for that epoch
slotsPerEpoch
* integer The maximum number of slots in each epoch
warmup
* boolean Indicates whether epochs start short and grow
additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
{
"firstNormalEpoch": 8,
"firstNormalSlot": 8160,
"leaderScheduleSlotOffset": 8192,
"slotsPerEpoch": 8192,
"warmup": true
}