@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2020-03-26T13:36:09.894Z[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 |
getBlocksByHeightWithLimit(java.math.BigInteger height,
java.lang.Integer limit,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<BlockInfoDTO>>> resultHandler)
Get blocks information
Gets up to limit number of blocks after given block height.
|
void |
getBlockTransactions(java.math.BigInteger height,
java.lang.Integer pageSize,
java.lang.String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<TransactionInfoDTO>>> resultHandler)
Get transactions from a block
Returns an array of transactions included in a block for a given block height.
|
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 |
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 getBlockTransactions(java.math.BigInteger height,
java.lang.Integer pageSize,
java.lang.String id,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<TransactionInfoDTO>>> resultHandler)
getBlockTransactions in interface BlockRoutesApiheight - Block height. (required)pageSize - Number of entries to return. (optional, default to 10)id - 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)resultHandler - Asynchronous result handlerpublic void getBlocksByHeightWithLimit(java.math.BigInteger height,
java.lang.Integer limit,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<BlockInfoDTO>>> resultHandler)
getBlocksByHeightWithLimit in interface BlockRoutesApiheight - Block height. (required)limit - Number of elements to be returned. The limit should be greater than or equal to \"db.pageSizeMin\" and not higher than \"db.pageSizeMax\". The settings are adjustable via the configuration file (rest/resources/rest.json) per REST instance. (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 handler