Class AccountParticipation

AccountParticipation describes the parameters used by this account in consensus protocol.

Hierarchy

Constructors

  • Creates a new AccountParticipation object.

    Parameters

    • __namedParameters: { selectionParticipationKey: string | Uint8Array; stateProofKey?: string | Uint8Array; voteFirstValid: number | bigint; voteKeyDilution: number | bigint; voteLastValid: number | bigint; voteParticipationKey: string | Uint8Array }
      • selectionParticipationKey: string | Uint8Array
      • Optional stateProofKey?: string | Uint8Array
      • voteFirstValid: number | bigint
      • voteKeyDilution: number | bigint
      • voteLastValid: number | bigint
      • voteParticipationKey: string | Uint8Array

    Returns indexerModels.AccountParticipation

Properties

attribute_map: Record<string, string>
selectionParticipationKey: Uint8Array

Selection public key (if any) currently registered for this round.

stateProofKey?: Uint8Array

Root of the state proof key (if any)

voteFirstValid: number | bigint

First round for which this participation is valid.

voteKeyDilution: number | bigint

Number of subkeys in each batch of participation keys.

voteLastValid: number | bigint

Last round for which this participation is valid.

voteParticipationKey: Uint8Array

root participation public key (if any) currently registered for this round.

Methods

  • Get an object ready for encoding to either JSON or msgpack.

    Parameters

    • binary: boolean = false

      Use true to indicate that the encoding can handle raw binary objects (Uint8Arrays). Use false to indicate that raw binary objects should be converted to base64 strings. True should be used for objects that will be encoded with msgpack, and false should be used for objects that will be encoded with JSON.

    Returns Record<string, any>

Generated using TypeDoc