ftm.getHeads()
Description: Retrieves the IDs of all epoch events with no descendants.
Parameters
Name
Type
Description
ctx
context
Execution context.
epoch
integer
The epoch of the block.
- -2
: Returns heads for the latest epoch.
- -1
: Returns heads for the latest sealed epoch.
Returns
Type
Description
ids
IDs of all epoch events with no descendants.
Last updated