Skip to main content

ClockProtocol

ClockProtocol Objects​

class ClockProtocol(typing.Protocol)

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

id​

def id() -> ObjectId

The object's ID.

timestamp_ms​

def timestamp_ms() -> int

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