cURL
curl --request POST \ --url 'https://rpc-mainnet.solanatracker.io/?api_key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "db16f277-1a22-41ff-9f85-f37e2cd77900", "method": "getSlotLeader", "params": [ { "commitment": "finalized" } ] } '
{ "jsonrpc": "2.0", "id": "db16f277-1a22-41ff-9f85-f37e2cd77900", "result": "q9XWcZ7T1wP4bW9SB4XgNNwjnFEJ982nE8aVbbNuwot" }
The JSON-RPC protocol version.
2.0
"2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getSlotLeader
"getSlotLeader"
Optional configuration object.
Show child attributes
Successfully retrieved the slot leader.
Identifier matching the request.
The Solana validator identity (public key) scheduled as block producer for this slot.
"q9XWcZ7T1wP4bW9SB4XgNNwjnFEJ982nE8aVbbNuwot"
Was this page helpful?