Class KeyregTransactionType
KeyregTransactionType contains the additional fields for a keyreg Transaction
Inheritance
Implements
Inherited Members
Namespace: Algorand.Algod.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class KeyregTransactionType : IEquatable<KeyregTransactionType>, IValidatableObject
Constructors
| Improve this Doc View SourceKeyregTransactionType(String, Nullable<UInt64>, Nullable<UInt64>, String, Nullable<UInt64>)
Initializes a new instance of the KeyregTransactionType class.
Declaration
public KeyregTransactionType(string selkey = null, ulong? votefst = default(ulong? ), ulong? votekd = default(ulong? ), string votekey = null, ulong? votelst = default(ulong? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | selkey | SelectionPK is the VRF public key used in key registration transactions. |
System.Nullable<System.UInt64> | votefst | VoteFirst is the first round this participation key is valid. |
System.Nullable<System.UInt64> | votekd | VoteKeyDilution is the dilution for the 2-level participation key. |
System.String | votekey | VotePK is the participation public key used in key registration transactions. |
System.Nullable<System.UInt64> | votelst | VoteLast is the last round this participation key is valid. |
Properties
| Improve this Doc View SourceSelkey
SelectionPK is the VRF public key used in key registration transactions
Declaration
[DataMember(Name = "selkey", EmitDefaultValue = false)]
public string Selkey { get; set; }
Property Value
Type | Description |
---|---|
System.String | SelectionPK is the VRF public key used in key registration transactions |
Votefst
VoteFirst is the first round this participation key is valid
Declaration
[DataMember(Name = "votefst", EmitDefaultValue = false)]
public ulong? Votefst { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | VoteFirst is the first round this participation key is valid |
Votekd
VoteKeyDilution is the dilution for the 2-level participation key
Declaration
[DataMember(Name = "votekd", EmitDefaultValue = false)]
public ulong? Votekd { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | VoteKeyDilution is the dilution for the 2-level participation key |
Votekey
VotePK is the participation public key used in key registration transactions
Declaration
[DataMember(Name = "votekey", EmitDefaultValue = false)]
public string Votekey { get; set; }
Property Value
Type | Description |
---|---|
System.String | VotePK is the participation public key used in key registration transactions |
Votelst
VoteLast is the last round this participation key is valid
Declaration
[DataMember(Name = "votelst", EmitDefaultValue = false)]
public ulong? Votelst { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> | VoteLast is the last round this participation key is valid |
Methods
| Improve this Doc View SourceEquals(KeyregTransactionType)
Returns true if KeyregTransactionType instances are equal
Declaration
public bool Equals(KeyregTransactionType input)
Parameters
Type | Name | Description |
---|---|---|
KeyregTransactionType | input | Instance of KeyregTransactionType 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 |