Skip to main content

0.01 credits per call

getEpochInfo on Solana: Returns information about the current epoch.

Endpoint

https://rpc.goldrushdata.com/v1/solana-mainnet
Authenticate with Authorization: Bearer <GOLDRUSH_API_KEY>. See authentication.

Parameters

NameTypeRequiredDescriptionExample
configobjectno{commitment?, minContextSlot?}.{"commitment":"finalized"}

Returns

object: {epoch, absoluteSlot, slotIndex, slotsInEpoch, blockHeight, transactionCount}.
{"epoch":862,"absoluteSlot":372877175,"slotIndex":277175,"slotsInEpoch":432000,"blockHeight":361234567,"transactionCount":386742395873}

Examples

curl https://rpc.goldrushdata.com/v1/solana-mainnet \
  -H "Authorization: Bearer $GOLDRUSH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "getEpochInfo",
    "params": [{"commitment":"finalized"}]
  }'

Errors

Standard JSON-RPC errors: -32600 invalid request, -32601 method not found, -32602 invalid params.