getSlot

getSlot RPC Method

post
/historical

Returns the highest slot available on the historical RPC endpoints.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getSlotPossible values:
Responses
chevron-right
200

Successful Response

application/json

RPC response containing the current slot number

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier matching the original request

Example: 1
stringOptional
or
numberOptional
resultinteger · int64Optional

The current slot number. Slots are the basic unit of time in Solana, with each slot representing approximately 400ms. This number continuously increases as the network progresses.

Example: 123456789
post
/historical

Last updated