Slot
getSlotLeader
Returns the current slot leader.
Parameters
configobject optional Configuration object.
commitmentstringCommitment level.
minContextSlotnumberThe minimum slot.
Result
stringNode identity Pubkey as base-58 encoded string.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getSlotLeader",
"params": [{ "commitment": "finalized" }]
}'Response
JSON{
"jsonrpc": "2.0",
"result": "ENvAW7JScgYq6o4zKZwewtkzzJgDzb1wAAj18WBIheGg",
"id": 1
}