getSlotLeader - Solana

getSlotLeader. Identifies the current slot leader, helping developers understand which node is responsible

getSlotLeader - solana [Value: 11CU]
Identifies the current slot leader, helping understand which node is responsible for producing the next block in the blockchain
Use cases

Use cases

  • Fetch the current slot leader in the Solana blockchain
  • Identify which validator is producing blocks
  • Monitor slot leader changes for performance analysis
Constraints

Constraints

  • Limited to current slot leader data
  • Dependent on up-to-date network information
  • API rate limits may restrict frequent access
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://solana.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getSlotLeader"
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": 98123569,
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
minContextSlotobject
The minimum slot number at which the request can be evaluated.
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete

Response

200
Provides the current slot number.

Response params

object
idinteger
jsonrpcstring
resultinteger