Transaction ID
The ID for a transaction. This is used for retrieving receipts and records for a transaction, for
appending to a file right after creating it, for instantiating a smart contract with bytecode in
a file just created, and internally by the network for detecting when duplicate transactions are
submitted. A user might get a transaction processed faster by submitting it to N nodes, each with
a different node account, but all with the same TransactionID. Then, the transaction will take
effect when the first of all those nodes submits the transaction and it reaches consensus. The
other transactions will not take effect. So this could make the transaction take effect faster,
if any given node might be slow. However, the full transaction fee is charged for each
transaction, so the total fee is N times as much if the transaction is sent to N nodes.
Applicable to Scheduled Transactions:
- The ID of a Scheduled Transaction has transactionValidStart and accountIDs inherited from the
ScheduleCreate transaction that created it. That is to say that they are equal
- The scheduled property is true for Scheduled Transactions
- transactionValidStart, accountID and scheduled properties should be omitted
Content copied to clipboard
TW.Hedera.Proto.TransactionID
Types
Link copied to clipboard
class Builder
The ID for a transaction. This is used for retrieving receipts and records for a transaction, for
appending to a file right after creating it, for instantiating a smart contract with bytecode in
a file just created, and internally by the network for detecting when duplicate transactions are
submitted. A user might get a transaction processed faster by submitting it to N nodes, each with
a different node account, but all with the same TransactionID. Then, the transaction will take
effect when the first of all those nodes submits the transaction and it reaches consensus. The
other transactions will not take effect. So this could make the transaction take effect faster,
if any given node might be slow. However, the full transaction fee is charged for each
transaction, so the total fee is N times as much if the transaction is sent to N nodes.
Applicable to Scheduled Transactions:
- The ID of a Scheduled Transaction has transactionValidStart and accountIDs inherited from the
ScheduleCreate transaction that created it. That is to say that they are equal
- The scheduled property is true for Scheduled Transactions
- transactionValidStart, accountID and scheduled properties should be omitted
Content copied to clipboard
TW.Hedera.Proto.TransactionID
Functions
Link copied to clipboard
The Account ID that paid for this transaction
Content copied to clipboard
string accountID = 2;
Link copied to clipboard
The Account ID that paid for this transaction
Content copied to clipboard
string accountID = 2;
Link copied to clipboard
Link copied to clipboard
The identifier for an internal transaction that was spawned as part
of handling a user transaction. (These internal transactions share the
transactionValidStart and accountID of the user transaction, so a
nonce is necessary to give them a unique TransactionID.)
An example is when a "parent" ContractCreate or ContractCall transaction
calls one or more HTS precompiled contracts; each of the "child" transactions spawned for a precompile has a id
with a different nonce.
Content copied to clipboard
int32 nonce = 4;
Link copied to clipboard
Whether the Transaction is of type Scheduled or no
Content copied to clipboard
bool scheduled = 3;
Link copied to clipboard
The transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
Content copied to clipboard
.TW.Hedera.Proto.Timestamp transactionValidStart = 1;
Link copied to clipboard
The transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
Content copied to clipboard
.TW.Hedera.Proto.Timestamp transactionValidStart = 1;
Link copied to clipboard
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): TransactionID
Link copied to clipboard
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): TransactionID