⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
sol
Solana (SOL)

Method: POST getLeaderSchedule

dropdown

# getLeaderSchedule example for Solana (SOL)

POST getLeaderSchedule

Returns the leader schedule for an epoch

Parameters

u64 - u64

Optional.

Fetch the leader schedule for the epoch that corresponds to the provided slot. If unspecified, the leader schedule for the current epoch is fetched

Config - object

Optional.

Configuration object containing the following field: - commitment: object (optional) - identity: string (optional) - Only return results for this validator identity (base-58 encoded)

Request

curl --location --request POST 'https://sol.getblock.io/mainnet' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "getLeaderSchedule",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "12CUDzb3oe8RBQ4tYGqsuPsCbsVE4KWfktXRihXf8Ggq": [
            24216,
            24217,
            24218,
            24219,
            44896
        ],
        "12ashmTiFStQ8RGUpi1BTCinJakVyDKWjRL6SWhnbxbT": [
            848,
            849,
            850,
            851,
            7448
        ],
        "12oRmi8YDbqpkn326MdjwFeZ1bh3t7zVw8Nra2QK2SnR": [
            32396,
            32397,
            32398,
            32399,
            41032
        ]
    }
}