Class ChainRoutesApiImpl

  • All Implemented Interfaces:
    ChainRoutesApi

    @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-01-01T18:24:23.294947664-03:00[America/Argentina/Buenos_Aires]")
    public class ChainRoutesApiImpl
    extends java.lang.Object
    implements ChainRoutesApi
    • Constructor Detail

      • ChainRoutesApiImpl

        public ChainRoutesApiImpl()
      • ChainRoutesApiImpl

        public ChainRoutesApiImpl​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getChainHeight

        public void getChainHeight​(io.vertx.core.Handler<io.vertx.core.AsyncResult<HeightInfoDTO>> resultHandler)
        Get the current height of the chain Returns the current height of the blockchain.
        Specified by:
        getChainHeight in interface ChainRoutesApi
        Parameters:
        resultHandler - Asynchronous result handler
      • getChainScore

        public void getChainScore​(io.vertx.core.Handler<io.vertx.core.AsyncResult<ChainScoreDTO>> resultHandler)
        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
        Specified by:
        getChainScore in interface ChainRoutesApi
        Parameters:
        resultHandler - Asynchronous result handler