Package io.nem.sdk.openapi.jersey2.api
Class ChainRoutesApi
- java.lang.Object
-
- io.nem.sdk.openapi.jersey2.api.ChainRoutesApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-02-02T21:53:44.206008392-03:00[America/Argentina/Buenos_Aires]") public class ChainRoutesApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChainRoutesApi()ChainRoutesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()HeightInfoDTOgetChainHeight()Get the current height of the chain Returns the current height of the blockchain.ApiResponse<HeightInfoDTO>getChainHeightWithHttpInfo()Get the current height of the chain Returns the current height of the blockchain.ChainScoreDTOgetChainScore()Get the current score of the chain Gets the current score of the blockchain.ApiResponse<ChainScoreDTO>getChainScoreWithHttpInfo()Get the current score of the chain Gets the current score of the blockchain.voidsetApiClient(ApiClient apiClient)
-
-
-
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 -
-
-