getEpochIndexAt method

Returns the epoch index at a given block number. The epoch index is the number of a block relative to the epoch it is in. For example, the first block of any epoch always has an epoch index of 0.

Params

ParameterTypeRequired
blockNumbernumberYes

Result

PropertyTypeRequired
u32numberYes

Code Examples

Copy page
Create issue