Transactions are requests that are submitted by a client to a node in the Hedera network. Every transaction has a fee associated with it that will pay for processing the transaction. The following table lists the transaction type requests for each service.
The following methods can be called when building the above transaction types:
Sets the maximum fee, in tinybar, that the client is willing to pay to execute this transaction, which is split between the network and the node. The actual fee assessed may be less than this, in which case you will only be charged that amount. An error is thrown if the assessed fee is greater than this.
Sets any notes or description that should be put into the transaction record (if one is requested). Note that a max of length of 100 is enforced.
The Duration in which the transaction will be valid from transactionValidStart time
The account of the node that submits the client's transaction to the network
The ID for this transaction, which includes the payer's account (the account paying the transaction fee). If two transactions have the same transactionID, they won't both have an effect
Builds the transaction
PrivateKey<? extends PublicKey>
Expliclity sign the transaction with a private key
Submits the transaction to the Hedera network for consensus
The receipt of a transaction returns whether the transaction has reached consensus or not. It also returns the a new
fileId if generated in the transaction.
Gets the receipt for a transaction object
TransactionReceipt receipt = txId.getReceipt(client);
const transactionReceipt = await transactionId.getReceipt(client);
The newly generated account ID
The newly generated topic ID
byte [ ]
The topic running hash
The topic sequence number
The newly generated contract ID
The newly generated file ID
A transaction record returns the following information about a transaction:
List of transfers
Gets the record for a transaction object
TransactionRecord record = txId.getRecord(client);
const transactionRecord = await transactionId.getRecord(client)
The ID of the transaction this record represents
byte [ ]
The hash of the Transaction that executed
The actual transaction fee charged, unless there were insufficient funds in the operator account
All Hbar transfers as a result of this transaction, such as fees, or transfers performed by the transaction, or by a smart contract it calls, or by the creation of threshold records that it triggers.
The consensus timestamp
The status (reach consensus, or failed, or is unknown), and the ID of any new account/file/instance created
The memo that was submitted as part of the transaction (max 100 bytes)