@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2020-03-09T21:11:31.580Z[UTC]")
public class BlockRoutesApi
extends java.lang.Object
| Constructor and Description |
|---|
BlockRoutesApi(BlockRoutesApi delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
getBlockByHeight(java.lang.String 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.lang.String 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.lang.String 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.
|
BlockRoutesApi |
getDelegate() |
void |
getMerkleTransaction(java.lang.String 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.
|
static BlockRoutesApi |
newInstance(BlockRoutesApi arg) |
rx.Single<BlockInfoDTO> |
rxGetBlockByHeight(java.lang.String height)
Get block information
Gets a block from the chain that has the given height.
|
rx.Single<java.util.List<BlockInfoDTO>> |
rxGetBlocksByHeightWithLimit(java.lang.String height,
java.lang.Integer limit)
Get blocks information
Gets up to limit number of blocks after given block height.
|
rx.Single<java.util.List<TransactionInfoDTO>> |
rxGetBlockTransactions(java.lang.String height,
java.lang.Integer pageSize,
java.lang.String id,
java.lang.String ordering)
Get transactions from a block
Returns an array of transactions included in a block for a given block height.
|
rx.Single<MerkleProofInfoDTO> |
rxGetMerkleTransaction(java.lang.String height,
java.lang.String hash)
Get the merkle path for a given a transaction and block
Returns the merkle path for a transaction included in a block.
|
public BlockRoutesApi(BlockRoutesApi delegate)
public BlockRoutesApi getDelegate()
public void getBlockByHeight(java.lang.String height,
io.vertx.core.Handler<io.vertx.core.AsyncResult<BlockInfoDTO>> resultHandler)
height - Block height. (required)resultHandler - Asynchronous result handlerpublic rx.Single<BlockInfoDTO> rxGetBlockByHeight(java.lang.String height)
height - Block height. (required)public void getBlockTransactions(java.lang.String 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)
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 handlerpublic rx.Single<java.util.List<TransactionInfoDTO>> rxGetBlockTransactions(java.lang.String height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering)
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")public void getBlocksByHeightWithLimit(java.lang.String height,
java.lang.Integer limit,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.List<BlockInfoDTO>>> resultHandler)
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 the configuration file (rest/resources/rest.json) per REST instance. (required)resultHandler - Asynchronous result handlerpublic rx.Single<java.util.List<BlockInfoDTO>> rxGetBlocksByHeightWithLimit(java.lang.String height, java.lang.Integer limit)
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 the configuration file (rest/resources/rest.json) per REST instance. (required)public void getMerkleTransaction(java.lang.String height,
java.lang.String hash,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MerkleProofInfoDTO>> resultHandler)
height - Block height. (required)hash - Transaction hash. (required)resultHandler - Asynchronous result handlerpublic rx.Single<MerkleProofInfoDTO> rxGetMerkleTransaction(java.lang.String height, java.lang.String hash)
height - Block height. (required)hash - Transaction hash. (required)public static BlockRoutesApi newInstance(BlockRoutesApi arg)