getBlockByNumber method

Future<Block?> getBlockByNumber(
  1. String block
)

Gets a block by number.

Implementation

Future<Block?> getBlockByNumber(String block) async {
  final data = await provider.getBlockByNumber(block, true);
  return data != null ? Block.fromJson(data) : null;
}