New: getTransactionsForAddress - Query transaction history with advanced filtering, sorting, and pagination. Learn More
English
Returns information about the current epoch.
cURL
curl --request POST \ --url 'https://mainnet.helius-rpc.com/?api-key=' \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": "1", "method": "getEpochInfo", "params": [ { "commitment": "finalized", "minContextSlot": 1000 } ] } '
{ "jsonrpc": "2.0", "id": "1", "result": { "absoluteSlot": 166598, "blockHeight": 166500, "epoch": 27, "slotIndex": 2790, "slotsInEpoch": 8192, "transactionCount": 22661093 } }
Your Helius API key. You can get one for free in the dashboard.
The JSON-RPC protocol version.
2.0
"2.0"
A unique identifier for the request.
"1"
The name of the RPC method to invoke.
getEpochInfo
"getEpochInfo"
Optional parameters for the request.
Show child attributes
Successfully retrieved epoch information.
Identifier matching the request.
Was this page helpful?