Skip to main content

Interface: ClockLike

A typed view of the on-chain 0x2::clock::Clock object (the 0x6 singleton carrying the consensus timestamp).

Methods

id()

id(): ObjectIdLike;

The object's ID.

Returns

ObjectIdLike


timestampMs()

timestampMs(): bigint;

The clock's timestamp (ms), set by consensus every commit.

Returns

bigint