Class ChainRoutesApi


  • public class ChainRoutesApi
    extends java.lang.Object
    • Constructor Detail

      • ChainRoutesApi

        public ChainRoutesApi()
      • ChainRoutesApi

        public ChainRoutesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getChainHeightCall

        public okhttp3.Call getChainHeightCall​(ApiCallback _callback)
                                        throws ApiException
        Build call for getChainHeight
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainHeight

        public HeightInfoDTO getChainHeight()
                                     throws ApiException
        Get the current height of the chain Returns the current height of the blockchain.
        Returns:
        HeightInfoDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainHeightWithHttpInfo

        public ApiResponse<HeightInfoDTO> getChainHeightWithHttpInfo()
                                                              throws ApiException
        Get the current height of the chain Returns the current height of the blockchain.
        Returns:
        ApiResponse<HeightInfoDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainHeightAsync

        public okhttp3.Call getChainHeightAsync​(ApiCallback<HeightInfoDTO> _callback)
                                         throws ApiException
        Get the current height of the chain (asynchronously) Returns the current height of the blockchain.
        Parameters:
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainScoreCall

        public okhttp3.Call getChainScoreCall​(ApiCallback _callback)
                                       throws ApiException
        Build call for getChainScore
        Parameters:
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainScore

        public ChainScoreDTO getChainScore()
                                    throws ApiException
        Get the current score of the chain Gets the current score of the blockchain. The higher the score, the better the chain. During synchronization, nodes try to get the best blockchain in the network. The score for a block is derived from its difficulty and the time (in seconds) that has elapsed since the last block: block score = difficulty − time elapsed since last block
        Returns:
        ChainScoreDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainScoreWithHttpInfo

        public ApiResponse<ChainScoreDTO> getChainScoreWithHttpInfo()
                                                             throws ApiException
        Get the current score of the chain Gets the current score of the blockchain. The higher the score, the better the chain. During synchronization, nodes try to get the best blockchain in the network. The score for a block is derived from its difficulty and the time (in seconds) that has elapsed since the last block: block score = difficulty − time elapsed since last block
        Returns:
        ApiResponse<ChainScoreDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
        Http Response Details
        Status Code Description Response Headers
        200 success -
      • getChainScoreAsync

        public okhttp3.Call getChainScoreAsync​(ApiCallback<ChainScoreDTO> _callback)
                                        throws ApiException
        Get the current score of the chain (asynchronously) Gets the current score of the blockchain. The higher the score, the better the chain. During synchronization, nodes try to get the best blockchain in the network. The score for a block is derived from its difficulty and the time (in seconds) that has elapsed since the last block: block score = difficulty − time elapsed since last block
        Parameters:
        _callback - The callback to be executed when the API call finishes
        Returns:
        The request call
        Throws:
        ApiException - If fail to process the API call, e.g. serializing the request body object
        Http Response Details
        Status Code Description Response Headers
        200 success -