GetBlocks constructor
      
      GetBlocks(
    
- u64 startSlot, {
- u64? endSlot,
- GetBlocksConfig? config,
Creates a codec for getBlocks JSON RPC methods.
Implementation
GetBlocks(
  final u64 startSlot, {
  final u64? endSlot,
  final GetBlocksConfig? config,
}) : assert(endSlot == null || (endSlot - startSlot) <= 500000),
     super(
       'getBlocks',
       values: endSlot != null ? [startSlot, endSlot] : [startSlot],
       config: config ?? const GetBlocksConfig(),
     );