VoteAccount class

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.

    Parameters

    • buffer: number[] | Uint8Array | Buffer

      account data

    Returns VoteAccount

    VoteAccount