getBlocksWithLimit abstract method

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

Returns a list of confirmed blocks starting at the given slot

startSlot start_slot, as u64 integer

limit limit, as u64 integer

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

Implementation

Future<List<int>> getBlocksWithLimit(
  int startSlot,
  int limit, {
  Commitment? commitment,
});