Package io.nem.sdk.openapi.vertx.api
Class ReceiptRoutesApiImpl
- java.lang.Object
-
- io.nem.sdk.openapi.vertx.api.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
-
-
Constructor Summary
Constructors Constructor Description ReceiptRoutesApiImpl()ReceiptRoutesApiImpl(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()voidgetBlockReceipts(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.voidgetMerkleReceipts(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.voidsetApiClient(ApiClient apiClient)
-
-
-
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:
getBlockReceiptsin interfaceReceiptRoutesApi- 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:
getMerkleReceiptsin interfaceReceiptRoutesApi- Parameters:
height- Block height. (required)hash- Receipt hash. (required)resultHandler- Asynchronous result handler
-
-