curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getSlotLeaders",
"params": [
100,
10
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
"<string>"
]
}curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "getSlotLeaders",
"params": [
100,
10
]
}
'{
"jsonrpc": "<string>",
"id": 123,
"result": [
"<string>"
]
}getSlotLeaders method returns the slot leaders for a given slot range.
Each slot on Solana has a designated leader validator responsible for producing the block. This method returns the ordered list of validator identities assigned to produce blocks in the requested range.
startSlot (integer, required) — the start slot.limit (integer, required) — the number of slot leaders to return (1–5000).result (array of strings) — an array of node identity public keys as base58 encoded strings, in order of the slot leaders for each slot in the requested range.getSlotLeaders is in transaction landing optimization. By knowing which validator is the upcoming leader, you can route transactions directly to that validator’s TPU port for faster inclusion. This is especially useful in latency-sensitive applications like trading bots and arbitrage.Was this page helpful?