curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getSlot",
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": 123
}
curl --request POST \
--url https://nd-326-444-187.p2pify.com/9de47db917d4f69168e3fed02217d15b \
--header 'Content-Type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "getSlot",
"params": []
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": 123
}
getSlot
methodgetSlot
method returns the current slot.
This method provides the current slot, which is a unit of time in the Solana network. It is useful for tracking the progress of the network.
See also Understanding the difference between blocks and slots on Solana.
value
— the current slot.getSlot
is to track the progress of the network. This can be useful for network monitoring tools or other applications that need to display or make use of this information.Slot details
The response is of type object
.
Was this page helpful?