getSlot - Solana

getSlot. Retrieves the current slot number

getSlot - solana [Value: 7CU]
Retrieves the current slot number, providing developers with the latest position
Use cases

Use cases

  • Retrieve the current slot number in the Solana blockchain
  • Monitor the latest slot for synchronization purposes
  • Track slot progression for network health analysis
Constraints

Constraints

  • Limited to the current slot data
  • Requires real-time network connectivity
  • API rate limits may impact retrieval frequency
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url https://solana.drpc.org \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "getSlot"
}
'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": 98123569,
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
minContextSlotobject
The minimum slot number at which the request can be evaluated.
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete

Response

200
Provides the current slot number.

Response params

object
idinteger
jsonrpcstring
resultinteger