Class TransactionFee
TransactionFee contains the suggested fee
Inheritance
Implements
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class TransactionFee : IEquatable<TransactionFee>, IValidatableObject
Constructors
| Improve this Doc View SourceTransactionFee(Nullable<UInt64>)
Initializes a new instance of the TransactionFee class.
Declaration
public TransactionFee(ulong? fee = default(ulong? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.UInt64> | fee | Fee is 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). |
Properties
| Improve this Doc View SourceFee
Fee is 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 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. |
Methods
| Improve this Doc View SourceEquals(TransactionFee)
Returns true if TransactionFee instances are equal
Declaration
public bool Equals(TransactionFee input)
Parameters
Type | Name | Description |
---|---|---|
TransactionFee | input | Instance of TransactionFee 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 |