getLeaderSchedule method
Returns the leader schedule for an epoch.
The leader schedule with be fetched for the epoch that corresponds to the provided slot
. If
omitted, the leader schedule for the current epoch is fetched.
Implementation
Future<LeaderSchedule> getLeaderSchedule({
final u64? slot,
final GetLeaderScheduleConfig? config,
}) async =>
(await getLeaderScheduleRaw(slot: slot, config: config)).result!;