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
| Parameter | Type | Required |
|---|---|---|
blockNumber | number | Yes |
Result
| Property | Type | Required |
|---|---|---|
u32 | number | Yes |