Class BlockRepositoryOkHttpImpl

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

    public class BlockRepositoryOkHttpImpl
    extends AbstractRepositoryOkHttpImpl
    implements io.nem.sdk.api.BlockRepository
    Blockchain http repository.
    Since:
    1.0
    • Constructor Detail

      • BlockRepositoryOkHttpImpl

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

      • getBlockByHeight

        public io.reactivex.Observable<io.nem.sdk.model.blockchain.BlockInfo> getBlockByHeight​(java.math.BigInteger height)
        Specified by:
        getBlockByHeight in interface io.nem.sdk.api.BlockRepository
      • getBlockTransactions

        public io.reactivex.Observable<java.util.List<io.nem.sdk.model.transaction.Transaction>> getBlockTransactions​(java.math.BigInteger height,
                                                                                                                      io.nem.sdk.api.QueryParams queryParams)
        Specified by:
        getBlockTransactions in interface io.nem.sdk.api.BlockRepository
      • getBlockTransactions

        public io.reactivex.Observable<java.util.List<io.nem.sdk.model.transaction.Transaction>> getBlockTransactions​(java.math.BigInteger height)
        Specified by:
        getBlockTransactions in interface io.nem.sdk.api.BlockRepository
      • getBlocksByHeightWithLimit

        public io.reactivex.Observable<java.util.List<io.nem.sdk.model.blockchain.BlockInfo>> getBlocksByHeightWithLimit​(java.math.BigInteger height,
                                                                                                                         int limit)
        Specified by:
        getBlocksByHeightWithLimit in interface io.nem.sdk.api.BlockRepository
      • getMerkleTransaction

        public io.reactivex.Observable<io.nem.sdk.model.blockchain.MerkelProofInfo> getMerkleTransaction​(java.math.BigInteger height,
                                                                                                         java.lang.String hash)
        Specified by:
        getMerkleTransaction in interface io.nem.sdk.api.BlockRepository
      • toBlockInfo

        public static io.nem.sdk.model.blockchain.BlockInfo toBlockInfo​(io.nem.sdk.openapi.okhttp_gson.model.BlockInfoDTO blockInfoDTO)
      • getClient

        public io.nem.sdk.openapi.okhttp_gson.api.BlockRoutesApi getClient()