Skip to main content

ClockInterface

type ClockInterface

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

type ClockInterface interface {
// The object's ID.
Id() *ObjectId
// The clock's timestamp (ms), set by consensus every commit.
TimestampMs() uint64
}