• Fetch the leader schedule for a given epoch.

    Parameters

    • t: HttpTransport

      HTTP transport instance

    • Optionalslot: Slot

      Fetch the leader schedule for the epoch that corresponds to the provided slot. If unspecified, the leader schedule for the current epoch is fetched

    • opts: CallOptions & {
          commitment?: Commitment;
          identity?: undefined;
      } = {}

      Optional commitment, identity filter, and call options

    Returns Promise<Record<Pubkey, number[]> | null>

    A mapping of validator identities to their leader slot indices, or null if unavailable

    const schedule = await getLeaderSchedule(transport);
    

    1.0.0