Skip to main content
Returns information about the current epoch: how far through it the cluster is, how many slots it contains, and the current absolute slot and block height.

Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getEpochInfo",
  "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": {
    "absoluteSlot": 166598317,
    "blockHeight": 150448256,
    "epoch": 385,
    "slotIndex": 123317,
    "slotsInEpoch": 432000,
    "transactionCount": 138904537441
  }
}
epoch
number
The current epoch number.
slotIndex
number
The current slot’s position within the epoch (0-indexed).
slotsInEpoch
number
Total number of slots in the current epoch.
absoluteSlot
number
The current slot number since genesis.
blockHeight
number
The current block height.
transactionCount
number | null
Total number of transactions processed since genesis. null if unavailable.

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":"getEpochInfo"}'