Class ReceiptRoutesApi
- java.lang.Object
-
- io.nem.sdk.openapi.vertx.api.rxjava.ReceiptRoutesApi
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2019-11-23T10:26:45.594287+01:00[Europe/Madrid]") public class ReceiptRoutesApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ReceiptRoutesApi(ReceiptRoutesApi delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.ReceiptRoutesApigetDelegate()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.static ReceiptRoutesApinewInstance(ReceiptRoutesApi arg)rx.Single<StatementsDTO>rxGetBlockReceipts(java.math.BigInteger height)Get receipts from a block Returns the receipts linked to a block.rx.Single<MerkleProofInfoDTO>rxGetMerkleReceipts(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.
-
-
-
Constructor Detail
-
ReceiptRoutesApi
public ReceiptRoutesApi(ReceiptRoutesApi delegate)
-
-
Method Detail
-
getDelegate
public ReceiptRoutesApi getDelegate()
-
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.- Parameters:
height- Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. (required)resultHandler- Asynchronous result handler
-
rxGetBlockReceipts
public rx.Single<StatementsDTO> rxGetBlockReceipts(java.math.BigInteger height)
Get receipts from a block Returns the receipts linked to a block.- Parameters:
height- Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
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.- Parameters:
height- Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. (required)hash- Receipt hash. (required)resultHandler- Asynchronous result handler
-
rxGetMerkleReceipts
public rx.Single<MerkleProofInfoDTO> rxGetMerkleReceipts(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. 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. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. (required)hash- Receipt hash. (required)- Returns:
- Asynchronous result handler (RxJava Single)
-
newInstance
public static ReceiptRoutesApi newInstance(ReceiptRoutesApi arg)
-
-