Skip to content

suix_getCurrentEpoch ​

Extended API

Return current epoch info

Parameters ​

None.

Result ​

  • EpochInfo · EpochInfo

    • endOfEpochInfo · EndOfEpochInfo or null · optional
    • epoch · BigInt<u64> · requiredepoch number
    • epochStartTimestamp · BigInt<u64> · required
    • epochTotalTransactions · BigInt<u64> · requiredcount of tx in epoch
    • firstCheckpointId · BigInt<u64> · requiredfirst, last checkpoint sequence numbers
    • referenceGasPrice · integer (uint64) or null (uint64) · optional
    • validators · SuiValidatorSummary[] · requiredlist of validators included in epoch

Example ​

Request ​

bash
curl https://mainnet-api.inodra.com/v1/jsonrpc \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "suix_getCurrentEpoch",
  "params": []
}'

The full-stack Sui data layer.