@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2020-08-14T13:43:37.324Z[UTC]")
public class BlockRoutesApi
extends java.lang.Object
| Constructor and Description |
|---|
BlockRoutesApi() |
BlockRoutesApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ApiClient |
getApiClient() |
BlockInfoDTO |
getBlockByHeight(java.math.BigInteger height)
Get block information
Gets a block from the chain that has the given height.
|
ApiResponse<BlockInfoDTO> |
getBlockByHeightWithHttpInfo(java.math.BigInteger height)
Get block information
Gets a block from the chain that has the given height.
|
MerkleProofInfoDTO |
getMerkleReceipts(java.math.BigInteger height,
java.lang.String hash)
Get the merkle path for a given a receipt statement hash and block
Returns the merkle path for a receipt statement or resolution linked to a block.
|
ApiResponse<MerkleProofInfoDTO> |
getMerkleReceiptsWithHttpInfo(java.math.BigInteger height,
java.lang.String hash)
Get the merkle path for a given a receipt statement hash and block
Returns the merkle path for a receipt statement or resolution linked to a block.
|
MerkleProofInfoDTO |
getMerkleTransaction(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.
|
ApiResponse<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.
|
BlockPage |
searchBlocks(java.lang.String signerPublicKey,
java.lang.String beneficiaryAddress,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.lang.String offset,
Order order,
BlockOrderByEnum orderBy)
Search blocks
Gets an array of bocks.
|
ApiResponse<BlockPage> |
searchBlocksWithHttpInfo(java.lang.String signerPublicKey,
java.lang.String beneficiaryAddress,
java.lang.Integer pageSize,
java.lang.Integer pageNumber,
java.lang.String offset,
Order order,
BlockOrderByEnum orderBy)
Search blocks
Gets an array of bocks.
|
void |
setApiClient(ApiClient apiClient) |
public BlockRoutesApi()
public BlockRoutesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public BlockInfoDTO getBlockByHeight(java.math.BigInteger height) throws ApiException
height - Block height. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 404 | ResourceNotFound | - |
| 409 | InvalidArgument | - |
public ApiResponse<BlockInfoDTO> getBlockByHeightWithHttpInfo(java.math.BigInteger height) throws ApiException
height - Block height. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 404 | ResourceNotFound | - |
| 409 | InvalidArgument | - |
public MerkleProofInfoDTO getMerkleReceipts(java.math.BigInteger height, java.lang.String hash) throws ApiException
height - Block height. (required)hash - Receipt hash. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 404 | ResourceNotFound | - |
| 409 | InvalidArgument | - |
public ApiResponse<MerkleProofInfoDTO> getMerkleReceiptsWithHttpInfo(java.math.BigInteger height, java.lang.String hash) throws ApiException
height - Block height. (required)hash - Receipt hash. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 404 | ResourceNotFound | - |
| 409 | InvalidArgument | - |
public MerkleProofInfoDTO getMerkleTransaction(java.math.BigInteger height, java.lang.String hash) throws ApiException
height - Block height. (required)hash - Transaction hash. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 404 | ResourceNotFound | - |
| 409 | InvalidArgument | - |
public ApiResponse<MerkleProofInfoDTO> getMerkleTransactionWithHttpInfo(java.math.BigInteger height, java.lang.String hash) throws ApiException
height - Block height. (required)hash - Transaction hash. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 404 | ResourceNotFound | - |
| 409 | InvalidArgument | - |
public BlockPage searchBlocks(java.lang.String signerPublicKey, java.lang.String beneficiaryAddress, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.lang.String offset, Order order, BlockOrderByEnum orderBy) throws ApiException
signerPublicKey - Filter by public key of the account signing the entity. (optional)beneficiaryAddress - Filter by beneficiary address. (optional)pageSize - Select the number of entries to return. (optional, default to 10)pageNumber - Filter by page number. (optional, default to 1)offset - 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)order - Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc)orderBy - Sort responses by the property set. (optional)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 409 | InvalidArgument | - |
public ApiResponse<BlockPage> searchBlocksWithHttpInfo(java.lang.String signerPublicKey, java.lang.String beneficiaryAddress, java.lang.Integer pageSize, java.lang.Integer pageNumber, java.lang.String offset, Order order, BlockOrderByEnum orderBy) throws ApiException
signerPublicKey - Filter by public key of the account signing the entity. (optional)beneficiaryAddress - Filter by beneficiary address. (optional)pageSize - Select the number of entries to return. (optional, default to 10)pageNumber - Filter by page number. (optional, default to 1)offset - 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)order - Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc)orderBy - Sort responses by the property set. (optional)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | success | - |
| 409 | InvalidArgument | - |