Class AccountParticipation
AccountParticipation describes the parameters used by this account in consensus protocol.
Inheritance
Implements
Inherited Members
Namespace: Algorand.V2.Model
Assembly: Algorand.dll
Syntax
[DataContract]
public class AccountParticipation : IEquatable<AccountParticipation>, IValidatableObject
Constructors
| Improve this Doc View SourceAccountParticipation()
Initializes a new instance of the AccountParticipation class.
Declaration
[JsonConstructor]
protected AccountParticipation()
AccountParticipation(Byte[], Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Byte[])
Initializes a new instance of the AccountParticipation class.
Declaration
public AccountParticipation(byte[] selectionParticipationKey = null, long? voteFirstValid = default(long? ), long? voteKeyDilution = default(long? ), long? voteLastValid = default(long? ), byte[] voteParticipationKey = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | selectionParticipationKey | \[sel\] Selection public key (if any) currently registered for this round. (required). |
System.Nullable<System.Int64> | voteFirstValid | \[voteFst\] First round for which this participation is valid. (required). |
System.Nullable<System.Int64> | voteKeyDilution | \[voteKD\] Number of subkeys in each batch of participation keys. (required). |
System.Nullable<System.Int64> | voteLastValid | \[voteLst\] Last round for which this participation is valid. (required). |
System.Byte[] | voteParticipationKey | \[vote\] root participation public key (if any) currently registered for this round. (required). |
Properties
| Improve this Doc View SourceSelectionParticipationKey
\[sel\] Selection public key (if any) currently registered for this round.
Declaration
[DataMember(Name = "selection-participation-key", EmitDefaultValue = false)]
public byte[] SelectionParticipationKey { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | \[sel\] Selection public key (if any) currently registered for this round. |
VoteFirstValid
\[voteFst\] First round for which this participation is valid.
Declaration
[DataMember(Name = "vote-first-valid", EmitDefaultValue = false)]
public long? VoteFirstValid { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | \[voteFst\] First round for which this participation is valid. |
VoteKeyDilution
\[voteKD\] Number of subkeys in each batch of participation keys.
Declaration
[DataMember(Name = "vote-key-dilution", EmitDefaultValue = false)]
public long? VoteKeyDilution { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | \[voteKD\] Number of subkeys in each batch of participation keys. |
VoteLastValid
\[voteLst\] Last round for which this participation is valid.
Declaration
[DataMember(Name = "vote-last-valid", EmitDefaultValue = false)]
public long? VoteLastValid { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | \[voteLst\] Last round for which this participation is valid. |
VoteParticipationKey
\[vote\] root participation public key (if any) currently registered for this round.
Declaration
[DataMember(Name = "vote-participation-key", EmitDefaultValue = false)]
public byte[] VoteParticipationKey { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] | \[vote\] root participation public key (if any) currently registered for this round. |
Methods
| Improve this Doc View SourceEquals(AccountParticipation)
Returns true if AccountParticipation instances are equal
Declaration
public bool Equals(AccountParticipation input)
Parameters
Type | Name | Description |
---|---|---|
AccountParticipation | input | Instance of AccountParticipation 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 |