getEpochInfo - Solana

getEpochInfo. Retrieves detailed information about an epoch on the Solana blockchain

getEpochInfo - solana [Value: 9CU]
Provides with essential details about the current epoch
Use cases

Use cases

  • Retrieve current epoch information for Solana blockchain
  • Monitor changes in Solana epoch cycles
  • Analyze epoch data for performance metrics
Constraints

Constraints

  • Data limited to current epoch only
  • Subject to API call rate limits
  • Potential delays in data retrieval process
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://solana.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}'
Copy
Response
200
{
  "jsonrpc": "2.0",
  "result": {
    "epoch": 215,
    "slotIndex": 12345,
    "slotsInEpoch": 432000,
    "absoluteSlot": 987654321,
    "blockHeight": 9876543,
    "transactionCount": 123456789
  },
  "id": 1
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray
array
minContextSlotobject
The minimum slot number at which the request can be evaluated.
commitmentstring
The level of commitment required for the query
  • finalized - The node will query the most recent block confirmed by supermajority of the cluster as having reached maximum lockout, meaning the cluster has recognized this block as finalized
  • confirmed - The node will query the most recent block that has been voted on by supermajority of the cluster
  • processed - The node will query its most recent block. Note that the block may not be complete

Response

200
Object containing current blockchain status details

Response params

object
idinteger
jsonrpcstring
resultobject
object
absoluteSlotinteger
The current slot number.
blockHeightinteger
The current height of the blockchain.
epochinteger
The current epoch number.
slotIndexinteger
The index of the current slot within the epoch
slotsInEpochinteger
The total number of slots in the current epoch
transactionCountinteger
The total number of transactions processed in the current epoch.