When submitting a transaction to the Hedera network, various fields can be modified, such as the transaction ID, consensus time, memo field, account ID of the node, and the maximum fee. These values can be set using methods provided by the SDKs. However, they are not required as the SDK can automatically create or use default values.Documentation Index
Fetch the complete documentation index at: https://hedera-0c6e0218-mintlify-enhance-hollow-account-docs-97196.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
| Fields | Description |
|---|---|
| Transaction ID | Set the ID for this transaction. The transaction ID includes the operator’s account ( the account paying the transaction fee). If two transactions have the same transaction ID, they won’t both have an effect. One will complete normally and the other will fail with a duplicate transaction status.
|
| Valid Duration | Set the duration that this transaction is valid for Note: Max network valid duration is 180 seconds. SDK default value is 120 seconds. The minium valid duration period is 15 seconds. |
| Memo | Set a note or description that should be recorded in the transaction record (maximum length of 100 characters). Anyone can view this memo on the network |
| Node ID | Set the account ID of the node that this transaction will be submitted to. |
| Max transaction fee | Set the max transaction fee for the operator (transaction fee payer account) is willing to pay Default: 2 hbar |
| Method | Type |
|---|---|
setTransactionID(<transactionId>) | TransactionID |
setTransactionValidDuration(<validDuration>) | Duration |
setTransactionMemo(<memo>) | String |
setNodeAccountIds(<nodeAccountIds>) | List<AccountId> |
setMaxTransactionFee(<maxTransactionFee>) | Hbar |
setGrpcDeadline(<grpcDeadline>) | Duration |
setRegenerateTransactionId(<regenerateTransactionId>) | boolean |
Get transaction properties
| Method | Type |
|---|---|
getTransactionID() | TransactionID |
getTransactionValidDuration() | Duration |
getTransactionMemo() | String |
getNodeAccountId() | AccountID |
getMaxTransactionFee() | Hbar |
getTransactionHash() | byte[ ] |
getTransactionHashPerNode() | Map<AccountId, byte [ ]> |
getSignatures() | Map<AccountId, Map<PublicKey, byte [ ]>> |