Class TxId
Represents the transaction id associated with a network request.
This is generated by the library automatically for each request.
TxId
implements the equitable interface and can be
compared to other transaction ids returned from the library.
Implements
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public sealed class TxId : IEquatable<TxId>
Constructors
| Improve this Doc View SourceTxId(Address, DateTime, Boolean)
Convenience constructor converting the entered
DateTime
object into
the proper seconds and nanoseconds since the
Epoch for use by the network.
Declaration
public TxId(Address address, DateTime dateTime, bool pending = false)
Parameters
Type | Name | Description |
---|---|---|
Address | address | The address of the account that is both associated with and pays the transaction fees for this transaction. |
DateTime | dateTime | The date and time stamp for this transaction. Represents the earliest point in time the network will consider the transaction valid. |
Boolean | pending | Flag indicating that this transaction ID represents a pending transaction and not the transaction that scheduled it. Useful retreiving receipts and records, but cannot be set to true for creating new transactions (via setting it in the context). |
TxId(Address, Int64, Int32, Boolean)
Public constructor.
Declaration
public TxId(Address address, long seconds, int nanos, bool pending = false)
Parameters
Type | Name | Description |
---|---|---|
Address | address | The address of the account that is both associated with and pays the transaction fees for this transaction. |
Int64 | seconds | The total number of seconds elapsed since the Epoch. Represents the earliest point in time the network will consider the transaction valid. |
Int32 | nanos | The number of nanoseconds elapsed past the seconds portion of the time period identified in the seconds parameter. |
Boolean | pending | Flag indicating that this transaction ID represents a pending transaction and not the transaction that scheduled it. Useful retreiving receipts and records, but cannot be set to true for creating new transactions (via setting it in the context). |
Properties
| Improve this Doc View SourceAddress
The address of the account paying the transaction processing fee.
Declaration
public Address Address { get; }
Property Value
Type | Description |
---|---|
Address |
None
A special designation of an transaction id that can't be created. It represents the absence of a transaction id.
Declaration
public static TxId None { get; }
Property Value
Type | Description |
---|---|
TxId |
Pending
This transaction ID represents a pending or "scheduled" transaction that may or may not have been executed. The flag shold be set to true when interacting with pending transactions.
Declaration
public bool Pending { get; }
Property Value
Type | Description |
---|---|
Boolean |
ValidStartNanos
The number of nanoseconds added to the ValidStartSeconds value to produce the total amount of time since the Epoch.
Declaration
public int ValidStartNanos { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Unfortunately the native .net DateTime class does not represent time at the resolution of nano-seconds. Therefore it is necessary to represent the date time in this manner.
ValidStartSeconds
The number of whole seconds since the Epoch.
Declaration
public long ValidStartSeconds { get; }
Property Value
Type | Description |
---|---|
Int64 |