fetchSysvarEpochSchedule

function fetchSysvarEpochSchedule(
    rpc,
    config?,
): Promise<
    Readonly<{
        firstNormalEpoch: bigint;
        firstNormalSlot: bigint;
        leaderScheduleSlotOffset: bigint;
        slotsPerEpoch: bigint;
        warmup: boolean;
    }>
>;

Fetches the EpochSchedule sysvar account using any RPC that supports the GetAccountInfoApi.

Parameters

ParameterType
rpcRpc<GetAccountInfoApi>
config?FetchAccountConfig

Returns

Promise<Readonly<{ firstNormalEpoch: bigint; firstNormalSlot: bigint; leaderScheduleSlotOffset: bigint; slotsPerEpoch: bigint; warmup: boolean; }>>

On this page