Solana RPC · Network & cluster

POST getEpochInfo

Information about the current epoch.

Endpoint

POST  https://solrpc.infinityblocks.io/<API_KEY>

Standard Solana JSON-RPC 2.0 over HTTP POST. The API key is part of the URL path.

Parameters

ParamTypeRequiredDescription
configobjectnocommitment.

Request

curl -s https://solrpc.infinityblocks.io/<API_KEY> \
  -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getEpochInfo","params":[{"commitment":"confirmed"}]}'

With @solana/web3.js

const epoch = await rpc.getEpochInfo();

Response

{ "jsonrpc": "2.0", "id": 1, "result": { "absoluteSlot": 423214981, "blockHeight": 401299954, "epoch": 979, "slotIndex": 286981, "slotsInEpoch": 432000, "transactionCount": 516605374640 } }

Try it

Run getEpochInfolive · POST

Replace placeholders (e.g. <ADDRESS>) with real values. Your key is stored only in this browser.