getEpochInfo

Returns information about the current epoch

Parameters

Results

The result field will be an object with the following fields:

  • absoluteSlot: <u64>, the current slot

  • blockHeight: <u64>, the current block height

  • epoch: <u64>, the current epoch

  • slotIndex: <u64>, the current slot relative to the start of the current epoch

  • slotsInEpoch: <u64>, the number of slots in this epoch

Example

//Request
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}' app-beac30e3-a34b-467a-a510-ccde175a3a68.cls-593f3f46-316e-4f00-8ebd-9a45cfde390d.ankr.com
//Response
{
"jsonrpc": "2.0",
"result": {
"absoluteSlot": 49882939,
"blockHeight": 47400293,
"epoch": 115,
"slotIndex": 202939,
"slotsInEpoch": 432000
},
"id": 1
}