getBlocks method

Future<List<u64>> getBlocks(
  1. u64 startSlot, {
  2. u64? endSlot,
  3. GetBlocksConfig? config,
})

Returns a list of confirmed blocks between two slots.

Implementation

Future<List<u64>> getBlocks(
  final u64 startSlot, {
  final u64? endSlot,
  final GetBlocksConfig? config,
}) async =>
    (await getBlocksRaw(startSlot, endSlot: endSlot, config: config)).result!;