curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getSlot",
"params": [
{
"commitment": "confirmed"
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": 1234
}curl --request POST \
--url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"method": "getSlot",
"params": [
{
"commitment": "confirmed"
}
]
}
'{
"jsonrpc": "2.0",
"id": "db16f277-1a22-41ff-9f85-f37e2cd77900",
"result": 1234
}The JSON-RPC protocol version.
2.0 "2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getSlot "getSlot"
Optional configuration object.
Show child attributes
The finality level to retrieve the slot for (processed = fastest, finalized = fully confirmed).
confirmed, finalized, processed "finalized"
Minimum Solana blockchain slot that must be reached before processing this request.
2000
Successfully retrieved the current slot.
Was this page helpful?