Class BlockRoutesApi
- java.lang.Object
-
- io.nem.sdk.openapi.okhttp_gson.api.BlockRoutesApi
-
public class BlockRoutesApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BlockRoutesApi()BlockRoutesApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()BlockInfoDTOgetBlockByHeight(java.math.BigInteger height)Get block information Gets a block from the chain that has the given height.okhttp3.CallgetBlockByHeightAsync(java.math.BigInteger height, ApiCallback<BlockInfoDTO> _callback)Get block information (asynchronously) Gets a block from the chain that has the given height.okhttp3.CallgetBlockByHeightCall(java.math.BigInteger height, ApiCallback _callback)Build call for getBlockByHeightApiResponse<BlockInfoDTO>getBlockByHeightWithHttpInfo(java.math.BigInteger height)Get block information Gets a block from the chain that has the given height.java.util.List<BlockInfoDTO>getBlocksByHeightWithLimit(java.math.BigInteger height, java.lang.Integer limit)Get blocks information Gets up to limit number of blocks after given block height.okhttp3.CallgetBlocksByHeightWithLimitAsync(java.math.BigInteger height, java.lang.Integer limit, ApiCallback<java.util.List<BlockInfoDTO>> _callback)Get blocks information (asynchronously) Gets up to limit number of blocks after given block height.okhttp3.CallgetBlocksByHeightWithLimitCall(java.math.BigInteger height, java.lang.Integer limit, ApiCallback _callback)Build call for getBlocksByHeightWithLimitApiResponse<java.util.List<BlockInfoDTO>>getBlocksByHeightWithLimitWithHttpInfo(java.math.BigInteger height, java.lang.Integer limit)Get blocks information Gets up to limit number of blocks after given block height.java.util.List<TransactionInfoDTO>getBlockTransactions(java.math.BigInteger 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.okhttp3.CallgetBlockTransactionsAsync(java.math.BigInteger height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering, ApiCallback<java.util.List<TransactionInfoDTO>> _callback)Get transactions from a block (asynchronously) Returns an array of transactions included in a block for a given block height.okhttp3.CallgetBlockTransactionsCall(java.math.BigInteger height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering, ApiCallback _callback)Build call for getBlockTransactionsApiResponse<java.util.List<TransactionInfoDTO>>getBlockTransactionsWithHttpInfo(java.math.BigInteger 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.MerkleProofInfoDTOgetMerkleTransaction(java.math.BigInteger 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.okhttp3.CallgetMerkleTransactionAsync(java.math.BigInteger height, java.lang.String hash, ApiCallback<MerkleProofInfoDTO> _callback)Get the merkle path for a given a transaction and block (asynchronously) Returns the merkle path for a transaction included in a block.okhttp3.CallgetMerkleTransactionCall(java.math.BigInteger height, java.lang.String hash, ApiCallback _callback)Build call for getMerkleTransactionApiResponse<MerkleProofInfoDTO>getMerkleTransactionWithHttpInfo(java.math.BigInteger 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.voidsetApiClient(ApiClient apiClient)
-
-
-
Constructor Detail
-
BlockRoutesApi
public BlockRoutesApi()
-
BlockRoutesApi
public BlockRoutesApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getBlockByHeightCall
public okhttp3.Call getBlockByHeightCall(java.math.BigInteger height, ApiCallback _callback) throws ApiExceptionBuild call for getBlockByHeight- Parameters:
height- Block height. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockByHeight
public BlockInfoDTO getBlockByHeight(java.math.BigInteger height) throws ApiException
Get block information Gets a block from the chain that has the given height.- Parameters:
height- Block height. (required)- Returns:
- BlockInfoDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockByHeightWithHttpInfo
public ApiResponse<BlockInfoDTO> getBlockByHeightWithHttpInfo(java.math.BigInteger height) throws ApiException
Get block information Gets a block from the chain that has the given height.- Parameters:
height- Block height. (required)- Returns:
- ApiResponse<BlockInfoDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockByHeightAsync
public okhttp3.Call getBlockByHeightAsync(java.math.BigInteger height, ApiCallback<BlockInfoDTO> _callback) throws ApiExceptionGet block information (asynchronously) Gets a block from the chain that has the given height.- Parameters:
height- Block height. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockTransactionsCall
public okhttp3.Call getBlockTransactionsCall(java.math.BigInteger height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering, ApiCallback _callback) throws ApiExceptionBuild call for getBlockTransactions- 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")_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockTransactions
public java.util.List<TransactionInfoDTO> getBlockTransactions(java.math.BigInteger height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering) throws ApiException
Get transactions from a block Returns an array of transactions included in a block for a given block height.- 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")- Returns:
- List<TransactionInfoDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockTransactionsWithHttpInfo
public ApiResponse<java.util.List<TransactionInfoDTO>> getBlockTransactionsWithHttpInfo(java.math.BigInteger height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering) throws ApiException
Get transactions from a block Returns an array of transactions included in a block for a given block height.- 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")- Returns:
- ApiResponse<List<TransactionInfoDTO>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlockTransactionsAsync
public okhttp3.Call getBlockTransactionsAsync(java.math.BigInteger height, java.lang.Integer pageSize, java.lang.String id, java.lang.String ordering, ApiCallback<java.util.List<TransactionInfoDTO>> _callback) throws ApiExceptionGet transactions from a block (asynchronously) Returns an array of transactions included in a block for a given block height.- 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")_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getBlocksByHeightWithLimitCall
public okhttp3.Call getBlocksByHeightWithLimitCall(java.math.BigInteger height, java.lang.Integer limit, ApiCallback _callback) throws ApiExceptionBuild call for getBlocksByHeightWithLimit- 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)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 success - 409 InvalidArgument -
-
getBlocksByHeightWithLimit
public java.util.List<BlockInfoDTO> getBlocksByHeightWithLimit(java.math.BigInteger height, java.lang.Integer limit) throws ApiException
Get blocks information Gets up to limit number of blocks after given block height.- 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)- Returns:
- List<BlockInfoDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 409 InvalidArgument -
-
getBlocksByHeightWithLimitWithHttpInfo
public ApiResponse<java.util.List<BlockInfoDTO>> getBlocksByHeightWithLimitWithHttpInfo(java.math.BigInteger height, java.lang.Integer limit) throws ApiException
Get blocks information Gets up to limit number of blocks after given block height.- 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)- Returns:
- ApiResponse<List<BlockInfoDTO>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 409 InvalidArgument -
-
getBlocksByHeightWithLimitAsync
public okhttp3.Call getBlocksByHeightWithLimitAsync(java.math.BigInteger height, java.lang.Integer limit, ApiCallback<java.util.List<BlockInfoDTO>> _callback) throws ApiExceptionGet blocks information (asynchronously) Gets up to limit number of blocks after given block height.- 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)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Status Code Description Response Headers 200 success - 409 InvalidArgument -
-
getMerkleTransactionCall
public okhttp3.Call getMerkleTransactionCall(java.math.BigInteger height, java.lang.String hash, ApiCallback _callback) throws ApiExceptionBuild call for getMerkleTransaction- Parameters:
height- Block height. (required)hash- Transaction hash. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getMerkleTransaction
public MerkleProofInfoDTO getMerkleTransaction(java.math.BigInteger height, java.lang.String hash) throws ApiException
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.- Parameters:
height- Block height. (required)hash- Transaction hash. (required)- Returns:
- MerkleProofInfoDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getMerkleTransactionWithHttpInfo
public ApiResponse<MerkleProofInfoDTO> getMerkleTransactionWithHttpInfo(java.math.BigInteger height, java.lang.String hash) throws ApiException
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.- Parameters:
height- Block height. (required)hash- Transaction hash. (required)- Returns:
- ApiResponse<MerkleProofInfoDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
getMerkleTransactionAsync
public okhttp3.Call getMerkleTransactionAsync(java.math.BigInteger height, java.lang.String hash, ApiCallback<MerkleProofInfoDTO> _callback) throws ApiExceptionGet the merkle path for a given a transaction and block (asynchronously) 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.- Parameters:
height- Block height. (required)hash- Transaction hash. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details
Status Code Description Response Headers 200 success - 404 ResourceNotFound - 409 InvalidArgument -
-
-