Class ChainRoutesApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-05-15T14:38:14.328808-03:00[America/Argentina/Buenos_Aires]")
    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)
      • 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 fails to make API call
        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 fails to make API call
        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 fails to make API call
        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 fails to make API call
        Http Response Details
        Status Code Description Response Headers
        200 success -