Skip to main content

getSlotLeader RPC Method

Loading...

Updated on
Apr 30, 2025

getSlotLeader RPC Method

Parameters

object
object
Loading...
commitment
string
Loading...
finalized
string
Loading...
confirmed
string
Loading...
processed
string
Loading...
minContextSlot
integer
Loading...

Returns

result
Loading...
Request
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","id":1, "method":"getSlotLeader"}'
1
curl https://docs-demo.solana-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc":"2.0","id":1, "method":"getSlotLeader"}'
Response
1
{
2
"jsonrpc": "2.0",
3
"result": "BeaCHioStqCEFDFxKwAEzyrUPYxqnBPhJ98gDKeEiTPb",
4
"id": 1
5
}
1
{
2
"jsonrpc": "2.0",
3
"result": "BeaCHioStqCEFDFxKwAEzyrUPYxqnBPhJ98gDKeEiTPb",
4
"id": 1
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free