Class Transaction
Transaction contains all fields common to all transactions and serves as an envelope to all transactions type
Inheritance
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class Transaction : IEquatable<Transaction>, IValidatableObject
Constructors
| Improve this Doc View SourceTransaction(AssetConfigTransactionType, AssetFreezeTransactionType, AssetTransferTransactionType, Nullable<UInt64>, Nullable<UInt64>, String, Nullable<UInt64>, String, String, String, KeyregTransactionType, Nullable<UInt64>, String, PaymentTransactionType, String, Nullable<UInt64>, String, TransactionResults, String)
Initializes a new instance of the Transaction class.
Declaration
public Transaction(AssetConfigTransactionType curcfg = null, AssetFreezeTransactionType curfrz = null, AssetTransferTransactionType curxfer = null, ulong? fee = default(ulong? ), ulong? firstRound = default(ulong? ), string from = null, ulong? fromrewards = default(ulong? ), string genesisID = null, string genesishashb64 = null, string group = null, KeyregTransactionType keyreg = null, ulong? lastRound = default(ulong? ), string noteb64 = null, PaymentTransactionType payment = null, string poolerror = null, ulong? round = default(ulong? ), string tx = null, TransactionResults txresults = null, string type = null)
Parameters
Type | Name | Description |
---|---|---|
AssetConfigTransactionType | curcfg | curcfg. |
AssetFreezeTransactionType | curfrz | curfrz. |
AssetTransferTransactionType | curxfer | curxfer. |
System.Nullable<System.UInt64> | fee | Fee is the transaction fee (required). |
System.Nullable<System.UInt64> | firstRound | FirstRound indicates the first valid round for this transaction (required). |
System.String | from | From is the sender's address (required). |
System.Nullable<System.UInt64> | fromrewards | FromRewards is the amount of pending rewards applied to the From account as part of this transaction.. |
System.String | genesisID | Genesis ID (required). |
System.String | genesishashb64 | Genesis hash (required). |
System.String | group | Group. |
KeyregTransactionType | keyreg | keyreg. |
System.Nullable<System.UInt64> | lastRound | LastRound indicates the last valid round for this transaction (required). |
System.String | noteb64 | Note is a free form data. |
PaymentTransactionType | payment | payment. |
System.String | poolerror | PoolError indicates the transaction was evicted from this node's transaction pool (if non-empty). A non-empty PoolError does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future.. |
System.Nullable<System.UInt64> | round | ConfirmedRound indicates the block number this transaction appeared in. |
System.String | tx | TxID is the transaction ID (required). |
TransactionResults | txresults | txresults. |
System.String | type | Type is the transaction type (required). |
Properties
| Improve this Doc View SourceCurcfg
Gets or Sets Curcfg
Declaration
[DataMember(Name = "curcfg", EmitDefaultValue = false)]
public AssetConfigTransactionType Curcfg { get; set; }
Property Value
Type | Description |
---|---|
AssetConfigTransactionType |
Curfrz
Gets or Sets Curfrz
Declaration
[DataMember(Name = "curfrz", EmitDefaultValue = false)]
public AssetFreezeTransactionType Curfrz { get; set; }
Property Value
Type | Description |
---|---|
AssetFreezeTransactionType |
Curxfer
Gets or Sets Curxfer
Declaration
[DataMember(Name = "curxfer", EmitDefaultValue = false)]
public AssetTransferTransactionType Curxfer { get; set; }
Property Value
Type | Description |
---|---|
AssetTransferTransactionType |
Fee
Fee is the transaction fee
Declaration
[DataMember(Name = "fee", EmitDefaultValue = false)]
public ulong? Fee { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | Fee is the transaction fee |
FirstRound
FirstRound indicates the first valid round for this transaction
Declaration
[DataMember(Name = "first-round", EmitDefaultValue = false)]
public ulong? FirstRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | FirstRound indicates the first valid round for this transaction |
From
From is the sender's address
Declaration
[DataMember(Name = "from", EmitDefaultValue = false)]
public string From { get; set; }
Property Value
Type | Description |
---|---|
System.String | From is the sender's address |
Fromrewards
FromRewards is the amount of pending rewards applied to the From account as part of this transaction.
Declaration
[DataMember(Name = "fromrewards", EmitDefaultValue = false)]
public ulong? Fromrewards { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | FromRewards is the amount of pending rewards applied to the From account as part of this transaction. |
Genesishashb64
Genesis hash
Declaration
[DataMember(Name = "genesishashb64", EmitDefaultValue = false)]
public string Genesishashb64 { get; set; }
Property Value
Type | Description |
---|---|
System.String | Genesis hash |
GenesisID
Genesis ID
Declaration
[DataMember(Name = "genesisID", EmitDefaultValue = false)]
public string GenesisID { get; set; }
Property Value
Type | Description |
---|---|
System.String | Genesis ID |
Group
Group
Declaration
[DataMember(Name = "group", EmitDefaultValue = false)]
public string Group { get; set; }
Property Value
Type | Description |
---|---|
System.String | Group |
Keyreg
Gets or Sets Keyreg
Declaration
[DataMember(Name = "keyreg", EmitDefaultValue = false)]
public KeyregTransactionType Keyreg { get; set; }
Property Value
Type | Description |
---|---|
KeyregTransactionType |
LastRound
LastRound indicates the last valid round for this transaction
Declaration
[DataMember(Name = "last-round", EmitDefaultValue = false)]
public ulong? LastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | LastRound indicates the last valid round for this transaction |
Noteb64
Note is a free form data
Declaration
[DataMember(Name = "noteb64", EmitDefaultValue = false)]
public string Noteb64 { get; set; }
Property Value
Type | Description |
---|---|
System.String | Note is a free form data |
Payment
Gets or Sets Payment
Declaration
[DataMember(Name = "payment", EmitDefaultValue = false)]
public PaymentTransactionType Payment { get; set; }
Property Value
Type | Description |
---|---|
PaymentTransactionType |
Poolerror
PoolError indicates the transaction was evicted from this node's transaction pool (if non-empty). A non-empty PoolError does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future.
Declaration
[DataMember(Name = "poolerror", EmitDefaultValue = false)]
public string Poolerror { get; set; }
Property Value
Type | Description |
---|---|
System.String | PoolError indicates the transaction was evicted from this node's transaction pool (if non-empty). A non-empty PoolError does not guarantee that the transaction will never be committed; other nodes may not have evicted the transaction and may attempt to commit it in the future. |
Round
ConfirmedRound indicates the block number this transaction appeared in
Declaration
[DataMember(Name = "round", EmitDefaultValue = false)]
public ulong? Round { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | ConfirmedRound indicates the block number this transaction appeared in |
Tx
TxID is the transaction ID
Declaration
[DataMember(Name = "tx", EmitDefaultValue = false)]
public string Tx { get; set; }
Property Value
Type | Description |
---|---|
System.String | TxID is the transaction ID |
Txresults
Gets or Sets Txresults
Declaration
[DataMember(Name = "txresults", EmitDefaultValue = false)]
public TransactionResults Txresults { get; set; }
Property Value
Type | Description |
---|---|
TransactionResults |
Type
Type is the transaction type
Declaration
[DataMember(Name = "type", EmitDefaultValue = false)]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type is the transaction type |
Methods
| Improve this Doc View SourceEquals(Transaction)
Returns true if Transaction instances are equal
Declaration
public bool Equals(Transaction input)
Parameters
Type | Name | Description |
---|---|---|
Transaction | input | Instance of Transaction to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceIValidatableObject.Validate(ValidationContext)
To validate all properties of the instance
Declaration
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.DataAnnotations.ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> | Validation Result |