getLastBlockIndex method

Future<int> getLastBlockIndex()

Return the latest block index. @returns {Promise

Implementation

Future<int> getLastBlockIndex() async {
  try {
    final response = await networkStatus();
    return response.current_block_identifier.index;
  } catch (error) {
    rethrow;
  }
}