# Class: Clock

A representation of network time.

All members of Clock start from 0 upon network boot.

# Table of contents

# Constructors

# Accessors

# Constructors

# constructor

• new Clock(slot, epochStartTimestamp, epoch, leaderScheduleEpoch, unixTimestamp)

# Parameters

Name Type Description
slot bigint The current Slot.
epochStartTimestamp bigint The timestamp of the first Slot in this Epoch.
epoch bigint The current epoch.
leaderScheduleEpoch bigint The future Epoch for which the leader schedule has most recently been calculated.
unixTimestamp bigint The approximate real world time of the current slot.

# Defined in

internal.d.ts:147 (opens new window)

# Accessors

# epoch

• get epoch(): bigint

The current epoch.

# Returns

bigint

# Defined in

internal.d.ts:151 (opens new window)


# epochStartTimestamp

• get epochStartTimestamp(): bigint

The timestamp of the first Slot in this Epoch.

# Returns

bigint

# Defined in

internal.d.ts:153 (opens new window)


# leaderScheduleEpoch

• get leaderScheduleEpoch(): bigint

The future Epoch for which the leader schedule has most recently been calculated.

# Returns

bigint

# Defined in

internal.d.ts:155 (opens new window)


# slot

• get slot(): bigint

The current Slot.

# Returns

bigint

# Defined in

internal.d.ts:149 (opens new window)


# unixTimestamp

• get unixTimestamp(): bigint

The approximate real world time of the current slot.

# Returns

bigint

# Defined in

internal.d.ts:157 (opens new window)