Class ReceiptRoutesApi


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-02-02T21:53:44.206008392-03:00[America/Argentina/Buenos_Aires]")
    public class ReceiptRoutesApi
    extends java.lang.Object
    • Constructor Detail

      • ReceiptRoutesApi

        public ReceiptRoutesApi()
      • ReceiptRoutesApi

        public ReceiptRoutesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getBlockReceipts

        public StatementsDTO getBlockReceipts​(java.math.BigInteger height)
                                       throws ApiException
        Get receipts from a block Returns the receipts linked to a block.
        Parameters:
        height - Block height. (required)
        Returns:
        StatementsDTO
        Throws:
        ApiException - if fails to make API call
        Http Response Details
        Status Code Description Response Headers
        200 success -
        404 ResourceNotFound -
        409 InvalidArgument -
      • getBlockReceiptsWithHttpInfo

        public ApiResponse<StatementsDTO> getBlockReceiptsWithHttpInfo​(java.math.BigInteger height)
                                                                throws ApiException
        Get receipts from a block Returns the receipts linked to a block.
        Parameters:
        height - Block height. (required)
        Returns:
        ApiResponse<StatementsDTO>
        Throws:
        ApiException - if fails to make API call
        Http Response Details
        Status Code Description Response Headers
        200 success -
        404 ResourceNotFound -
        409 InvalidArgument -
      • getMerkleReceipts

        public MerkleProofInfoDTO getMerkleReceipts​(java.math.BigInteger height,
                                                    java.lang.String hash)
                                             throws ApiException
        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. 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 receipt was linked with the block.
        Parameters:
        height - Block height. (required)
        hash - Receipt hash. (required)
        Returns:
        MerkleProofInfoDTO
        Throws:
        ApiException - if fails to make API call
        Http Response Details
        Status Code Description Response Headers
        200 success -
        404 ResourceNotFound -
        409 InvalidArgument -
      • getMerkleReceiptsWithHttpInfo

        public ApiResponse<MerkleProofInfoDTO> getMerkleReceiptsWithHttpInfo​(java.math.BigInteger height,
                                                                             java.lang.String hash)
                                                                      throws ApiException
        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. 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 receipt was linked with the block.
        Parameters:
        height - Block height. (required)
        hash - Receipt hash. (required)
        Returns:
        ApiResponse<MerkleProofInfoDTO>
        Throws:
        ApiException - if fails to make API call
        Http Response Details
        Status Code Description Response Headers
        200 success -
        404 ResourceNotFound -
        409 InvalidArgument -