getBlockInformation method

Future<Block> getBlockInformation({
  1. String blockNumber = 'latest',
  2. bool isFull = false,
})

Implementation

Future<Block> getBlockInformation({
  String blockNumber = 'latest',
  bool isFull = false,
}) async {
  final block = await _client.getBlockByNumber(blockNumber);
  if (block == null) throw Exception('Block not found: $blockNumber');
  return block;
}