GetBlocks constructor

GetBlocks(
  1. u64 startSlot, {
  2. u64? endSlot,
  3. 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(),
);