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 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
}
}
The current epoch number.
The current slot’s position within the epoch (0-indexed).
Total number of slots in the current epoch.
The current slot number since genesis.
The current block height.
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"}'