Skip to content

Latest commit

 

History

History
68 lines (47 loc) · 1.65 KB

TransactionReceiptQuery.md

File metadata and controls

68 lines (47 loc) · 1.65 KB

class TransactionReceiptQuery extends Query < TransactionReceipt >

Get the receipt of a transaction, given its transaction ID.
Once a transaction reaches consensus, then information about whether it succeeded or failed will be available until the end of the receipt period.
This query is free.

** Java **

var receipt = new TransactionReceiptQuery()
    .setTransactionId(myTransactionId)
    .execute(client);

** JavaScript **

const receipt = await new TransactionReceiptQuery({
    transactionId: myTransactionId,
}).execute(client);

** Go **

receipt, err := NewTransactionReceiptQuery().
    SetTransactionID(response.TransactionID).
    SetNodeAccountIDs([]AccountID{response.NodeID}).
    Execute(client)
if err != nil {
    println(err.Error())
}

Constructor

constructor ()

Properties

includeDuplicates: bool

Whether receipts of processing duplicate transactions should be returned along with the receipt of processing the first consensus transaction with the given id whose status was neither INVALID_NODE_ACCOUNT nor INVALID_PAYER_SIGNATURE; or, if no such receipt exists, the receipt of processing the first transaction to reach consensus with the given transaction id.


includeChildren: bool

Whether the response should include the receipts of any child transactions spawned by the top-level transaction with the given transactionID.


transactionId: TransactionId

The transaction ID to query the receipt for