Home Reference Source
import {VoteAccount} from '@solana/web3'
public class | source

VoteAccount

VoteAccount class

Static Method Summary

Static Public Methods
public static

Deserialize VoteAccount from the account data.

Member Summary

Public Members
public
public
public
public
public
public

epochCredits: Array<EpochCredits>

public
public
public

rootSlot: number | nullliteral

public

votes: Array<Lockout>

Static Public Methods

public static fromAccountData(buffer: Buffer | Uint8Array | Array<number>): VoteAccount source

Deserialize VoteAccount from the account data.

Params:

NameTypeAttributeDescription
buffer Buffer | Uint8Array | Array<number>

account data

Return:

VoteAccount

VoteAccount

Public Members

public authorizedVoterPubkey: PublicKey source

public authorizedWithdrawerPubkey: PublicKey source

public commission: number source

public credits: number source

public epoch: number source

public epochCredits: Array<EpochCredits> source

public lastEpochCredits: number source

public nodePubkey: PublicKey source

public rootSlot: number | nullliteral source

public votes: Array<Lockout> source