Skip to content

Latest commit

 

History

History
61 lines (33 loc) · 1.74 KB

TransactionResponse.md

File metadata and controls

61 lines (33 loc) · 1.74 KB

class TransactionResponse

When the client sends the node a transaction of any kind, the node replies with this, which simply says that the transaction passed the pre-check (so the node will submit it to the network) or it failed (so it won't). To learn the consensus result, the client should later obtain a receipt (free), or can buy a more detailed record (not free).

Methods

getReceipt ( client: Client ): TransactionReceipt

Fetch the receipt for the current transaction ID using the same node account ID


getReceiptQuery (): TransactionReceiptQuery

Create a transaction receipt query for this particular transaction ID and node account ID


getRecord ( client: Client ): TransactionRecord

Fetch the transaction record for the current transaction ID using the same node account ID

Note: Will fetch the receipt first, then fetch the record because fetching the record in a loop will cost more Hbar.


getRecordQuery (): TransactionRecordQuery

Create a transaction record query for this particular transaction ID and node account ID


toString (): String

Stringification of all the current values


Fields

nodeId: AccountId

The account ID of the node which the transaction was submitted to


transactionHash: bytes

Hash of the transaction

Note: Should be the same as the TransactionRecord.transactionHash


transactionId: TransactionId

Transaction ID of the transaction that was submitted