GetVoteAccountsApi

type GetVoteAccountsApi = object;

Methods

getVoteAccounts()

getVoteAccounts<TVoteAccount>(config?): GetVoteAccountsApiResponse<TVoteAccount>;

Returns the account info and associated stake for all the voting accounts in the current bank.

Type Parameters

Type Parameter
TVoteAccount extends Address

Parameters

ParameterType
config?Readonly<{ commitment?: Commitment; delinquentSlotDistance?: bigint; keepUnstakedDelinquents?: boolean; votePubkey?: TVoteAddress; }>

Returns

GetVoteAccountsApiResponse<TVoteAccount>

See

https://solana.com/docs/rpc/http/getvoteaccounts

On this page