Class ChainRepositoryOkHttpImpl

  • All Implemented Interfaces:
    io.nem.sdk.api.ChainRepository

    public class ChainRepositoryOkHttpImpl
    extends AbstractRepositoryOkHttpImpl
    implements io.nem.sdk.api.ChainRepository
    Chain http repository.
    • Constructor Detail

      • ChainRepositoryOkHttpImpl

        public ChainRepositoryOkHttpImpl​(io.nem.sdk.openapi.okhttp_gson.invoker.ApiClient apiClient)
    • Method Detail

      • getClient

        public io.nem.sdk.openapi.okhttp_gson.api.ChainRoutesApi getClient()
      • getBlockchainHeight

        public io.reactivex.Observable<java.math.BigInteger> getBlockchainHeight()
        Get Block chain height
        Specified by:
        getBlockchainHeight in interface io.nem.sdk.api.ChainRepository
        Returns:
        io.reactivex.Observable of BigInteger
      • getChainScore

        public io.reactivex.Observable<io.nem.sdk.model.blockchain.BlockchainScore> getChainScore()
        Get Block chain score
        Specified by:
        getChainScore in interface io.nem.sdk.api.ChainRepository
        Returns:
        io.reactivex.Observable of BigInteger