Options
All
  • Public
  • Public/Protected
  • All
Menu

VoteAccount class

Hierarchy

  • VoteAccount

Index

Constructors

Properties

authorizedVoters: Readonly<{ authorizedVoter: PublicKey; epoch: number }>[]
authorizedWithdrawer: PublicKey
commission: number
epochCredits: Readonly<{ credits: number; epoch: number; prevCredits: number }>[]
lastTimestamp: Readonly<{ slot: number; timestamp: number }>
nodePubkey: PublicKey
priorVoters: Readonly<{ authorizedPubkey: PublicKey; epochOfLastAuthorizedSwitch: number; targetEpoch: number }>[]
rootSlot: null | number
votes: Lockout[]

Methods

  • fromAccountData(buffer: Buffer | Uint8Array | number[]): VoteAccount
  • Deserialize VoteAccount from the account data.

    Parameters

    • buffer: Buffer | Uint8Array | number[]

      account data

    Returns VoteAccount

    VoteAccount

Generated using TypeDoc