public class BlockRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements BlockRepository
Constructor and Description |
---|
BlockRepositoryOkHttpImpl(io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<BlockInfo> |
getBlockByHeight(java.math.BigInteger height)
Gets a BlockInfo for a given block height.
|
io.nem.symbol.sdk.openapi.okhttp_gson.api.BlockRoutesApi |
getClient() |
io.reactivex.Observable<MerkleProofInfo> |
getMerkleReceipts(java.math.BigInteger height,
java.lang.String hash)
Get the merkle path for a given a receipt statement hash and block Returns the merkle path for
a receipt statement or resolution linked to a block.
|
io.reactivex.Observable<MerkleProofInfo> |
getMerkleTransaction(java.math.BigInteger height,
java.lang.String hash)
Get the merkle path for a given a transaction and block Returns the merkle path for a
[transaction](https://nemtech.github.io/concepts/transaction.html) included in a block.
|
io.reactivex.Observable<Page<BlockInfo>> |
search(BlockSearchCriteria criteria)
It searches entities of a type based on a criteria.
|
static BlockInfo |
toBlockInfo(io.nem.symbol.sdk.openapi.okhttp_gson.model.BlockInfoDTO blockInfoDTO,
JsonHelper jsonHelper) |
call, call, callList, exceptionHandling, exceptionHandling, extractStatusCodeFromException, getJsonHelper, onError, toDto, toDto, toDto, toDto, toDto, toMerkleStateInfo, toPage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
streamer
public BlockRepositoryOkHttpImpl(io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiClient apiClient)
public static BlockInfo toBlockInfo(io.nem.symbol.sdk.openapi.okhttp_gson.model.BlockInfoDTO blockInfoDTO, JsonHelper jsonHelper)
public io.reactivex.Observable<BlockInfo> getBlockByHeight(java.math.BigInteger height)
BlockRepository
getBlockByHeight
in interface BlockRepository
height
- BigIntegerBlockInfo
public io.reactivex.Observable<Page<BlockInfo>> search(BlockSearchCriteria criteria)
Searcher
search
in interface Searcher<BlockInfo,BlockSearchCriteria>
criteria
- the criteriapublic io.reactivex.Observable<MerkleProofInfo> getMerkleTransaction(java.math.BigInteger height, java.lang.String hash)
BlockRepository
getMerkleTransaction
in interface BlockRepository
height
- the height.hash
- the expected hash.Observable
of MerkleProofInfopublic io.reactivex.Observable<MerkleProofInfo> getMerkleReceipts(java.math.BigInteger height, java.lang.String hash)
BlockRepository
getMerkleReceipts
in interface BlockRepository
height
- Block height. (required)hash
- Receipt hash. (required)Observable
of MerkleProofInfopublic io.nem.symbol.sdk.openapi.okhttp_gson.api.BlockRoutesApi getClient()