Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.44 KB

TransactionRecordQuery.md

File metadata and controls

64 lines (43 loc) · 1.44 KB

class TransactionRecordQuery extends Query < TransactionRecord >

Get the record for a transaction.

** Java **

var record = new TransactionRecordQuery()
    .setTransactionId(myTransactionId)
    .execute(client);

** JavaScript **

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

** Go **

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

Constructor

constructor ()

Properties

includeChildren: bool

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


includeDuplicates: bool

Whether records of processing duplicate transactions should be returned along with the record 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 record exists, the record of processing the first transaction to reach consensus with the given transaction id..


transactionId: TransactionId

The transaction ID to query the record for