HTTP Methods
GetEpochInfo
getEpochInfo RPC Method
Returns information about the current epoch.
Parameters
object
optional
Configuration object containing the following fields:
commitment string
optional
The level of commitment desired when querying state
minContextSlot number
optional
The minimum slot that the request can be evaluated at
Code Sample
Response
Result Details
The result field will be an object containing:
-
absoluteSlot: <u64>
- The current slot in the blockchain
- Represents the total number of slots processed
-
blockHeight: <u64>
- The current block height
- Number of blocks beneath the highest block
-
epoch: <u64>
- The current epoch number
- Represents the current epoch in the blockchain
-
slotIndex: <u64>
- The current slot relative to the start of the current epoch
- Shows progress within the current epoch
-
slotsInEpoch: <u64>
- Total number of slots in the current epoch
- Defines the length of the current epoch
-
transactionCount: <u64|null>
- Total number of transactions processed without error since genesis
- May be
null
if not available