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

coins coins coins coins
sol
Solana (SOL)

Method: POST getSlotLeaders

dropdown

# getSlotLeaders example for Solana (SOL)

POST getSlotLeaders

Returns the slot leaders for a given slot range

Parameters

start - u64 int

Start slot, as u64 integer

limit - u64 int

Limit, as u64 integer

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": "getSlotLeaders",
"params": [122788843, 5],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": [
        "DAHJgPKdmncYW8DmY6meaU953a7SktQ7eDGtWduC8W8m",
        "9tnYyc44wfQxCUc1UifeQVKn3EPQM7pyC3k2LUkJQeda",
        "9tnYyc44wfQxCUc1UifeQVKn3EPQM7pyC3k2LUkJQeda",
        "9tnYyc44wfQxCUc1UifeQVKn3EPQM7pyC3k2LUkJQeda",
        "9tnYyc44wfQxCUc1UifeQVKn3EPQM7pyC3k2LUkJQeda"
    ]
}