getBlockHeight method

Future<BigInt?> getBlockHeight({
  1. Duration? timeout,
})

Implementation

Future<BigInt?> getBlockHeight({Duration? timeout}) async {
  final result = await getLatestBlock(timeout: timeout);
  return result.block?.header?.height;
}