getVoteAccounts method

Future<VoteAccountStatus> getVoteAccounts({
  1. GetVoteAccountsConfig? config,
})

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

Implementation

Future<VoteAccountStatus> getVoteAccounts({
  final GetVoteAccountsConfig? config,
}) async =>
    (await getVoteAccountsRaw(config: config)).result!;