Clock
Clock Objects
class Clock(ClockProtocol)
A typed view of the on-chain 0x2::clock::Clock object (the 0x6
singleton carrying the consensus timestamp).
try_from_bcs
@classmethod
def try_from_bcs(cls, bytes: bytes) -> Clock
Decode from BCS bytes, without validating the on-chain type tag.
try_from_object
@classmethod
def try_from_object(cls, object: Object) -> Clock
Decode from an on-chain object, validating its Move type tag.
id
def id() -> ObjectId
The object's ID.
timestamp_ms
def timestamp_ms() -> int
The clock's timestamp (ms), set by consensus every commit.