TransactionID

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
Protobuf type 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
Protobuf type TW.Hedera.Proto.TransactionID

Functions

Link copied to clipboard
open fun getAccountID(): String
The Account ID that paid for this transaction
string accountID = 2;
Link copied to clipboard
open fun getAccountIDBytes(): ByteString
The Account ID that paid for this transaction
string accountID = 2;
Link copied to clipboard
open fun getDefaultInstance(): TransactionID
Link copied to clipboard
open fun getNonce(): Int
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.
int32 nonce = 4;
Link copied to clipboard
open fun getScheduled(): Boolean
Whether the Transaction is of type Scheduled or no
bool scheduled = 3;
Link copied to clipboard
open fun getTransactionValidStart(): Timestamp
The transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
.TW.Hedera.Proto.Timestamp transactionValidStart = 1;
Link copied to clipboard
The transaction is invalid if consensusTimestamp < transactionID.transactionStartValid
.TW.Hedera.Proto.Timestamp transactionValidStart = 1;
Link copied to clipboard
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream): TransactionID
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): TransactionID
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): TransactionID
open fun parseFrom(data: ByteString): TransactionID
open fun parseFrom(input: CodedInputStream): TransactionID
open fun parseFrom(input: InputStream): TransactionID
open fun parseFrom(data: ByteBuffer): TransactionID
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): TransactionID
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): TransactionID
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): TransactionID
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): TransactionID
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): TransactionID
Link copied to clipboard
open fun parser(): Parser<TransactionID>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard