getCurrentBlock method

Future<Json> getCurrentBlock()

Get Current Block

Implementation

Future<Json> getCurrentBlock() async {
  final blockNumber = await getBlockNumber();
  return await performTask(
    (client) => client.getBlockByNumber(blockNumber),
  );
}