@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2020-09-25T14:18:23.319Z[UTC]")
public class BlockRoutesApiImpl
extends java.lang.Object
implements BlockRoutesApi
| Constructor and Description |
|---|
BlockRoutesApiImpl() |
BlockRoutesApiImpl(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
void |
getBlockByHeight(java.math.BigInteger height,
io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockInfoDTO>> resultHandler)
Get block information
Gets a block from the chain that has the given height.
|
void |
getMerkleReceipts(java.math.BigInteger height,
java.lang.String hash,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MerkleProofInfoDTO>> resultHandler)
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.
|
void |
getMerkleTransaction(java.math.BigInteger height,
java.lang.String hash,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MerkleProofInfoDTO>> resultHandler)
Get the merkle path for a given a transaction and block
Returns the merkle path for a transaction included in a block.
|
void |
searchBlocks(java.lang.String signerPublicKey,
java.lang.String beneficiaryAddress,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.lang.String offset,
Order order,
BlockOrderByEnum orderBy,
io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockPage>> resultHandler)
Search blocks
Gets an array of bocks.
|
void |
setApiClient(ApiClient apiClient) |
public BlockRoutesApiImpl()
public BlockRoutesApiImpl(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void getBlockByHeight(java.math.BigInteger height,
io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockInfoDTO>> resultHandler)
getBlockByHeight in interface BlockRoutesApiheight - Block height. (required)resultHandler - Asynchronous result handlerpublic void getMerkleReceipts(java.math.BigInteger height,
java.lang.String hash,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MerkleProofInfoDTO>> resultHandler)
getMerkleReceipts in interface BlockRoutesApiheight - Block height. (required)hash - Receipt hash. (required)resultHandler - Asynchronous result handlerpublic void getMerkleTransaction(java.math.BigInteger height,
java.lang.String hash,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MerkleProofInfoDTO>> resultHandler)
getMerkleTransaction in interface BlockRoutesApiheight - Block height. (required)hash - Transaction hash. (required)resultHandler - Asynchronous result handlerpublic void searchBlocks(java.lang.String signerPublicKey,
java.lang.String beneficiaryAddress,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.lang.String offset,
Order order,
BlockOrderByEnum orderBy,
io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockPage>> resultHandler)
searchBlocks in interface BlockRoutesApisignerPublicKey - Filter by public key of the account signing the entity. (optional)beneficiaryAddress - Filter by beneficiary address. (optional)pageSize - Select the number of entries to return. (optional, default to 10)pageNumber - Filter by page number. (optional, default to 1)offset - Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional)order - Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc)orderBy - Sort responses by the property set. (optional)resultHandler - Asynchronous result handler