Class ReceiptRoutesApiImpl

  • All Implemented Interfaces:
    ReceiptRoutesApi

    @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2020-01-01T18:24:23.294947664-03:00[America/Argentina/Buenos_Aires]")
    public class ReceiptRoutesApiImpl
    extends java.lang.Object
    implements ReceiptRoutesApi
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ApiClient getApiClient()  
      void getBlockReceipts​(java.math.BigInteger height, io.vertx.core.Handler<io.vertx.core.AsyncResult<StatementsDTO>> resultHandler)
      Get receipts from a block Returns the receipts linked to a block.
      void getMerkleReceipts​(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 receipt statement hash and block Returns the merkle path for a receipt statement or resolution linked to a block.
      void setApiClient​(ApiClient apiClient)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReceiptRoutesApiImpl

        public ReceiptRoutesApiImpl()
      • ReceiptRoutesApiImpl

        public ReceiptRoutesApiImpl​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getBlockReceipts

        public void getBlockReceipts​(java.math.BigInteger height,
                                     io.vertx.core.Handler<io.vertx.core.AsyncResult<StatementsDTO>> resultHandler)
        Get receipts from a block Returns the receipts linked to a block.
        Specified by:
        getBlockReceipts in interface ReceiptRoutesApi
        Parameters:
        height - Block height. (required)
        resultHandler - Asynchronous result handler
      • getMerkleReceipts

        public void getMerkleReceipts​(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 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.
        Specified by:
        getMerkleReceipts in interface ReceiptRoutesApi
        Parameters:
        height - Block height. (required)
        hash - Receipt hash. (required)
        resultHandler - Asynchronous result handler