Skip to main content
Returns the slot that has reached the specified commitment level.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getSlot",
  "params": [{ "commitment": "finalized" }]
}

Parameters

commitment
string
Commitment level for the query. One of processed, confirmed, or finalized. Defaults to finalized.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": 341197053
}
result
number
The current slot number (u64).

Example

curl "https://rpc.solami.fast/sol?api_key=YOUR_API_KEY" \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'