Class TransactionParams
TransactionParams contains the parameters that help a client construct a new transaction.
Inheritance
Implements
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class TransactionParams : IEquatable<TransactionParams>, IValidatableObject
Constructors
| Improve this Doc View SourceTransactionParams(String, Nullable<UInt64>, String, String, Nullable<UInt64>, Nullable<UInt64>)
Initializes a new instance of the TransactionParams class.
Declaration
public TransactionParams(string consensusVersion = null, ulong? fee = default(ulong? ), string genesisID = null, string genesishashb64 = null, ulong? lastRound = default(ulong? ), ulong? minFee = default(ulong? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | consensusVersion | ConsensusVersion indicates the consensus protocol version as of LastRound. (required). |
System.Nullable<System.UInt64> | fee | Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol. (required). |
System.String | genesisID | Genesis ID (required). |
System.String | genesishashb64 | Genesis hash (required). |
System.Nullable<System.UInt64> | lastRound | LastRound indicates the last round seen (required). |
System.Nullable<System.UInt64> | minFee | The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol.. |
Properties
| Improve this Doc View SourceConsensusVersion
ConsensusVersion indicates the consensus protocol version as of LastRound.
Declaration
[DataMember(Name = "consensusVersion", EmitDefaultValue = false)]
public string ConsensusVersion { get; set; }
Property Value
Type | Description |
---|---|
System.String | ConsensusVersion indicates the consensus protocol version as of LastRound. |
Fee
Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol.
Declaration
[DataMember(Name = "fee", EmitDefaultValue = false)]
public ulong? Fee { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | Fee is the suggested transaction fee Fee is in units of micro-Algos per byte. Fee may fall to zero but transactions must still have a fee of at least MinTxnFee for the current network protocol. |
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 |
LastRound
LastRound indicates the last round seen
Declaration
[DataMember(Name = "lastRound", EmitDefaultValue = false)]
public ulong? LastRound { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | LastRound indicates the last round seen |
MinFee
The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol.
Declaration
[DataMember(Name = "minFee", EmitDefaultValue = false)]
public ulong? MinFee { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | The minimum transaction fee (not per byte) required for the txn to validate for the current network protocol. |
Methods
| Improve this Doc View SourceEquals(TransactionParams)
Returns true if TransactionParams instances are equal
Declaration
public bool Equals(TransactionParams input)
Parameters
Type | Name | Description |
---|---|---|
TransactionParams | input | Instance of TransactionParams 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 |