Class VoteAccount

VoteAccount class

Hierarchy

  • VoteAccount

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

  • Deserialize VoteAccount from the account data.

    Returns

    VoteAccount

    Parameters

    • buffer: number[] | Uint8Array | Buffer

      account data

    Returns VoteAccount

Generated using TypeDoc