getSlotLeader
Returns the current slot leader

Parameters

  • <object> - (optional) Config object:
    • commitment: <object> - (optional) Configures the commitment level of the blocks queried Accepts one of the following strings: ["finalized", "confirmed", "processed"] For more info, refer to this doc.
    • minContextSlot: <number> - (optional) set the minimum slot that the request can be evaluated at

Results

  • <base-58 encoded string> - Node identity Pubkey

Example

Request

cURL
1
curl --location --request POST 'https://solana-mainnet.g.alchemy.com/v2/demo' \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"id": 1,
6
"method": "getSlotLeader"
7
}'
Copied!

Response

1
{
2
"jsonrpc": "2.0",
3
"result": "Fd7btgySsrjuo25CJCj7oE7VPMyezDhnx7pZkj2v69Nk",
4
"id": 1
5
}
Copied!