@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2020-03-11T19:40:23.988-03:00[America/Argentina/Buenos_Aires]")
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,
java.lang.String ordering,
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,
java.lang.String ordering,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<TransactionInfoDTO>>> resultHandler)
getBlockTransactions in interface BlockRoutesApiheight - Block height. (required)pageSize - Number of transactions to return for each request. (optional, default to 10)id - Transaction identifier up to which transactions are returned. (optional)ordering - Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. (optional, default to "-id")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