Cycles are segments of sequential blocks. Cycles used as a measure of time on the Tezos blockchain where cycles are made up of 4096 blocks. For more information see the Cycles API documentation on tzKT.
phases in amendment voting are defined in cycles.
Fetches a cycle at the specified index from tzKT.
get cycles by index.
Fetch a Cycle by Index
let cycle: Cycle = await Cycle.byIndex(370);
Returns a cycle at the specified index.
Fetches a total number of cycles from tzKT.
get cycles count.
Fetch Cycle Count
let cycleCount: number = await Cycle.count();
Returns the total number of cycles, including future cycles.
Fetches cycles from tzKT.
get cycles.
Fetching/Filtering Cycles
let cycles: Cycles[] = await Cycle.get({'snapshotIndex.gt': 8, 'snapshotIndex.lt': 13});
Returns a list of cycles.
Generated using TypeDoc
Cycles are segments of sequential blocks. Cycles used as a measure of time on the Tezos blockchain where cycles are made up of 4096 blocks. For more information see the Cycles API documentation on tzKT.
phases in amendment voting are defined in cycles.