Class ChainRoutesApi
- java.lang.Object
-
- io.nem.sdk.openapi.vertx.api.rxjava.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 Summary
Constructors Constructor Description ChainRoutesApi(ChainRoutesApi delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetChainHeight(io.vertx.core.Handler<io.vertx.core.AsyncResult<HeightInfoDTO>> resultHandler)Get the current height of the chain Returns the current height of the blockchain.voidgetChainScore(io.vertx.core.Handler<io.vertx.core.AsyncResult<ChainScoreDTO>> resultHandler)Get the current score of the chain Gets the current score of the blockchain.ChainRoutesApigetDelegate()static ChainRoutesApinewInstance(ChainRoutesApi arg)rx.Single<HeightInfoDTO>rxGetChainHeight()Get the current height of the chain Returns the current height of the blockchain.rx.Single<ChainScoreDTO>rxGetChainScore()Get the current score of the chain Gets the current score of the blockchain.
-
-
-
Constructor Detail
-
ChainRoutesApi
public ChainRoutesApi(ChainRoutesApi delegate)
-
-
Method Detail
-
getDelegate
public ChainRoutesApi getDelegate()
-
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)
-
newInstance
public static ChainRoutesApi newInstance(ChainRoutesApi arg)
-
-