getSlotLeader RPC Method

Returns the current slot leader.

Parameters

object optional
Configuration object containing the following fields:

commitment string optional
The level of commitment desired when querying state

minContextSlot number optional
The minimum slot that the request can be evaluated at

Code Sample

curl https://rpc.testnet.soo.network/rpc \
-X POST \
-H "Content-Type: application/json" \
-d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSlotLeader",
  "params": [{
    "commitment": "finalized",
    "minContextSlot": 0
  }]
}'

Response

{
  "jsonrpc": "2.0",
  "result": "5ThJTCxpdn54bk3gBAWKZS4K9ogHEX56WooYbXQDnm3Q",
  "id": 1
}

Result Details

  • <string> - Node identity Pubkey
    • Represents the current slot leader
    • Encoded as a base-58 string
    • Identifies the validator node currently responsible for producing blocks