Class ChainRoutesApi


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

    • Method Detail

      • 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.
        Parameters:
        resultHandler - Asynchronous result handler
      • rxGetChainHeight

        public rx.Single<HeightInfoDTO> rxGetChainHeight()
        Get the current height of the chain Returns the current height of the blockchain.
        Returns:
        Asynchronous result handler (RxJava Single)
      • 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
        Parameters:
        resultHandler - Asynchronous result handler
      • rxGetChainScore

        public rx.Single<ChainScoreDTO> rxGetChainScore()
        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:
        Asynchronous result handler (RxJava Single)