getEpochInfo

Read the current Solana epoch, slot index, and block height over rpc edge JSON-RPC.

getEpochInfo returns where the cluster is in the current epoch: the absolute slot, block height, epoch number, and how far through the epoch the cluster is.

Request

curl -s https://rpc.rpcedge.com \
  -H 'content-type: application/json' \
  -H 'x-api-key: YOUR_UUID_KEY' \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getEpochInfo",
    "params": [{ "commitment": "processed" }]
  }'

Parameters

PositionNameTypeNotes
0configobjectOptional. commitment and minContextSlot.

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "absoluteSlot": 429641447,
    "blockHeight": 407812901,
    "epoch": 994,
    "slotIndex": 281447,
    "slotsInEpoch": 432000,
    "transactionCount": 389472013456
  }
}
FieldMeaning
absoluteSlotCurrent slot since genesis.
blockHeightCurrent block height (skips empty slots, unlike slots).
epochCurrent epoch number.
slotIndexSlots elapsed in the current epoch.
slotsInEpochTotal slots in the epoch - slotIndex / slotsInEpoch is your progress.

For upcoming leaders and route quality within the epoch, use the rpc edge leader slot API.

getEpochInfo · rpc edge docs