public class BlockchainHttp extends Http implements BlockchainRepository
client, objectMapper, url| Constructor and Description |
|---|
BlockchainHttp(java.lang.String host) |
BlockchainHttp(java.lang.String host,
NetworkHttp networkHttp) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<BlockInfo> |
getBlockByHeight(java.math.BigInteger height)
Gets a BlockInfo for a given block height.
|
io.reactivex.Observable<java.math.BigInteger> |
getBlockchainHeight()
Gets current blockchain height.
|
io.reactivex.Observable<java.math.BigInteger> |
getBlockchainScore()
Gets current blockchain score.
|
io.reactivex.Observable<BlockchainStorageInfo> |
getBlockchainStorage()
Gets blockchain storage info.
|
io.reactivex.Observable<java.util.List<Transaction>> |
getBlockTransactions(java.math.BigInteger height)
Gets list of transactions included in a block for a block height
|
io.reactivex.Observable<java.util.List<Transaction>> |
getBlockTransactions(java.math.BigInteger height,
QueryParams queryParams)
Gets list of transactions included in a block for a block height
With pagination.
|
public BlockchainHttp(java.lang.String host)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic BlockchainHttp(java.lang.String host,
NetworkHttp networkHttp)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic io.reactivex.Observable<BlockInfo> getBlockByHeight(java.math.BigInteger height)
BlockchainRepositorygetBlockByHeight in interface BlockchainRepositoryheight - BigIntegerBlockInfopublic io.reactivex.Observable<java.util.List<Transaction>> getBlockTransactions(java.math.BigInteger height, QueryParams queryParams)
BlockchainRepositorygetBlockTransactions in interface BlockchainRepositoryheight - BigIntegerqueryParams - QueryParamsTransaction>public io.reactivex.Observable<java.util.List<Transaction>> getBlockTransactions(java.math.BigInteger height)
BlockchainRepositorygetBlockTransactions in interface BlockchainRepositoryheight - BigIntegerTransaction>public io.reactivex.Observable<java.math.BigInteger> getBlockchainHeight()
BlockchainRepositorygetBlockchainHeight in interface BlockchainRepositorypublic io.reactivex.Observable<java.math.BigInteger> getBlockchainScore()
BlockchainRepositorygetBlockchainScore in interface BlockchainRepositorypublic io.reactivex.Observable<BlockchainStorageInfo> getBlockchainStorage()
BlockchainRepositorygetBlockchainStorage in interface BlockchainRepositoryBlockchainStorageInfo