getSysvarClockEncoder

function getSysvarClockEncoder(): FixedSizeEncoder<
    Readonly<{
        epoch: bigint;
        epochStartTimestamp: UnixTimestamp;
        leaderScheduleEpoch: bigint;
        slot: bigint;
        unixTimestamp: UnixTimestamp;
    }>,
    40
>;

Returns an encoder that you can use to encode a SysvarClock to a byte array representing the Clock sysvar's account data.

Returns

FixedSizeEncoder<Readonly<{ epoch: bigint; epochStartTimestamp: UnixTimestamp; leaderScheduleEpoch: bigint; slot: bigint; unixTimestamp: UnixTimestamp; }>, 40>

On this page