curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getSlotLeader",
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getSlotLeader",
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": "<string>"
}
getSlotLeader
methodgetSlotLeader
method returns the current slot leader.
This method provides the public key of the current slot leader, which is the validator responsible for producing blocks in the current slot. It is useful for tracking which validator is currently producing blocks.
value
— the public key of the current slot leader.getSlotLeader
is to track which validator is currently producing blocks. This can be useful for network monitoring tools or other applications that need to display or make use of this information.Slot leader details
The response is of type object
.
Was this page helpful?