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: number[] | Uint8Array | Buffer): VoteAccount
  • Deserialize VoteAccount from the account data.

    Parameters

    • buffer: number[] | Uint8Array | Buffer

      account data

    Returns VoteAccount

    VoteAccount

Generated using TypeDoc