class
TransactionReceiptQuery
extendsQuery
<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.
var receipt = new TransactionReceiptQuery()
.setTransactionId(myTransactionId)
.execute(client);
const receipt = await new TransactionReceiptQuery({
transactionId: myTransactionId,
}).execute(client);
receipt, err := NewTransactionReceiptQuery().
SetTransactionID(response.TransactionID).
SetNodeAccountIDs([]AccountID{response.NodeID}).
Execute(client)
if err != nil {
println(err.Error())
}
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.
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