getSysvarEpochScheduleEncoder

function getSysvarEpochScheduleEncoder(): FixedSizeEncoder<
    Readonly<{
        firstNormalEpoch: bigint;
        firstNormalSlot: bigint;
        leaderScheduleSlotOffset: bigint;
        slotsPerEpoch: bigint;
        warmup: boolean;
    }>,
    33
>;

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

Returns

FixedSizeEncoder<Readonly<{ firstNormalEpoch: bigint; firstNormalSlot: bigint; leaderScheduleSlotOffset: bigint; slotsPerEpoch: bigint; warmup: boolean; }>, 33>

On this page