Skip to main content
POST
getCurrentEpoch

Overview

Queries the FenineSystem contract to get the current epoch number. Epochs are periods of 200 blocks where validator set updates and reward distributions occur.

Contract Call Details

address
required
0x0000000000000000000000000000000000001000 (FenineSystem)
bytes
required
Function call: getCurrentEpoch()

Response

uint256
Current epoch number (0-indexed)

Examples

Epoch Calculation

You can also calculate the epoch from the current block number:

Use Cases

Epoch Information

getContractConstants

Get EPOCH_BLOCKS constant (200)

getNextEpochReward

Get reward pool for next epoch

updateValidatorCandidates

System TX at epoch boundary