POST
/
9de47db917d4f69168e3fed02217d15b
curl --request POST \
  --url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getEpochSchedule"
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {
    "slotsPerEpoch": 123,
    "leaderScheduleSlotOffset": 123,
    "warmup": true,
    "firstNormalEpoch": 123,
    "firstNormalSlot": 123
  }
}

Solana getEpochSchedule method

The Solana getEpochSchedule method returns the schedule for epochs in the network.

This method provides detailed information about the schedule for epochs, including the number of slots in each epoch, the number of slots in each warmup period, and more. It is useful for understanding the timing of epochs in the network.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

This method does not require any parameters.

Response

  • value — the epoch schedule:
    • slotsPerEpoch — the number of slots in each epoch.
    • leaderScheduleSlotOffset — the number of slots before the start of an epoch to calculate the leader schedule for that epoch.
    • warmup — whether epochs start short and grow.
    • firstNormalEpoch — the first epoch with slotsPerEpoch slots.
    • firstNormalSlot — the first slot of firstNormalEpoch.

Use case

A practical use case for getEpochSchedule is to understand the timing of epochs in the network. This can be useful for network monitoring tools or other applications that need to display or make use of this information.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:getEpochSchedule

Response

200 - application/json
Epoch schedule details
jsonrpc
string
id
integer
result
object