getSyncing method

Future<bool> getSyncing()

Implementation

Future<bool> getSyncing() async {
  var rootPath =
      "${TerraClientConfiguration.blockchainResourcePath}${CosmosBaseConstants.COSMOS_TENDERMINT_SYNCING}";

  var response = await apiRequester.getAsync<SyncingJson>(rootPath);
  if (response.successful!) {
    var result = SyncingJson.fromJson(response.result!);
    return result.syncing;
  }

  throw Exception("");
}