@solana/web3.js
    Preparing search index...

    Class VoteAccount

    VoteAccount class

    Index
    authorizedVoters: Readonly<{ authorizedVoter: PublicKey; epoch: number }>[]
    authorizedWithdrawer: PublicKey
    commission: number
    epochCredits: Readonly<{ credits: number; epoch: number; prevCredits: number }>[]
    lastTimestamp: BlockTimestamp
    nodePubkey: PublicKey
    priorVoters: Readonly<
        {
            authorizedPubkey: PublicKey;
            epochOfLastAuthorizedSwitch: number;
            targetEpoch: number;
        },
    >[]
    rootSlot: number | null
    votes: Lockout[]
    • Deserialize VoteAccount from the account data.

      Parameters

      • buffer: number[] | Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>

        account data

      Returns VoteAccount

      VoteAccount