Loading documentation…
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.
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" }]
}'| Position | Name | Type | Notes |
|---|---|---|---|
0 | config | object | Optional. commitment and minContextSlot. |
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"absoluteSlot": 429641447,
"blockHeight": 407812901,
"epoch": 994,
"slotIndex": 281447,
"slotsInEpoch": 432000,
"transactionCount": 389472013456
}
}| Field | Meaning |
|---|---|
absoluteSlot | Current slot since genesis. |
blockHeight | Current block height (skips empty slots, unlike slots). |
epoch | Current epoch number. |
slotIndex | Slots elapsed in the current epoch. |
slotsInEpoch | Total 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.