getLeaderSchedule abstract method

Future<Map<String, List<int>>?> getLeaderSchedule(
  1. int? slot, {
  2. Commitment? commitment = Commitment.finalized,
  3. String? identity,
})

Returns the leader schedule for an epoch

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

commitment For commitment parameter description see this document Commitment.processed is not supported as commitment.

identity Only return results for this validator identity (base-58 encoded)

Implementation

Future<Map<String, List<int>>?> getLeaderSchedule(
  int? slot, {
  Commitment? commitment = Commitment.finalized,
  String? identity,
});