getBlocks abstract method

Future<List<int>> getBlocks(
  1. int startSlot,
  2. int? endSlot, {
  3. Commitment? commitment,
})

Returns a list of confirmed blocks between two slots

startSlot start_slot, as u64 integer

endSlot end_slot, as u64 integer

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

Implementation

Future<List<int>> getBlocks(
  int startSlot,
  int? endSlot, {
  Commitment? commitment,
});