getSlotLeader RPC Method
Returns the current slot leader
params
objectoptional
Configuration object containing the following fields:
result
string
Node identity Pubkey as base-58 encoded string
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getSlotLeader"> }> '
Response
{"jsonrpc": "2.0","result": "ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS","id": 1}
Request
$ curl https://api.devnet.solana.com -s -X \> POST -H "Content-Type: application/json" -d '> {> "jsonrpc": "2.0",> "id": 1,> "method": "getSlotLeader"> }> '
params
objectoptional
Configuration object containing the following fields:
result
Response
{"jsonrpc": "2.0","result": "ENvAW7JScgYq6o4zKZwewtkzzJgDzuJAFxYasvmEQdpS","id": 1}
string
Node identity Pubkey as base-58 encoded string
Is this page helpful?