Package io.nem.sdk.openapi.vertx.api
Class BlockRoutesApiImpl
- java.lang.Object
-
- io.nem.sdk.openapi.vertx.api.BlockRoutesApiImpl
-
- All Implemented Interfaces:
BlockRoutesApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-01-01T18:24:23.294947664-03:00[America/Argentina/Buenos_Aires]") public class BlockRoutesApiImpl extends java.lang.Object implements BlockRoutesApi
-
-
Constructor Summary
Constructors Constructor Description BlockRoutesApiImpl()BlockRoutesApiImpl(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()voidgetBlockByHeight(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.voidgetBlocksByHeightWithLimit(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.voidgetBlockTransactions(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.voidgetMerkleTransaction(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.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
BlockRoutesApiImpl
public BlockRoutesApiImpl()
-
BlockRoutesApiImpl
public BlockRoutesApiImpl(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getBlockByHeight
public 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.- Specified by:
getBlockByHeightin interfaceBlockRoutesApi- Parameters:
height- Block height. (required)resultHandler- Asynchronous result handler
-
getBlockTransactions
public 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.- Specified by:
getBlockTransactionsin interfaceBlockRoutesApi- Parameters:
height- 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 handler
-
getBlocksByHeightWithLimit
public 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.- Specified by:
getBlocksByHeightWithLimitin interfaceBlockRoutesApi- Parameters:
height- 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 a configuration file (rest/resources/rest.json) per REST instance. (required)resultHandler- Asynchronous result handler
-
getMerkleTransaction
public 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. The path is the complementary data needed to calculate the merkle root. A client can compare if the calculated root equals the one recorded in the block header, verifying that the transaction was included in the block.- Specified by:
getMerkleTransactionin interfaceBlockRoutesApi- Parameters:
height- Block height. (required)hash- Transaction hash. (required)resultHandler- Asynchronous result handler
-
-