• Fetch the account info and associated stake for all voting accounts.

    Parameters

    • t: HttpTransport

      HTTP transport instance

    • opts: CallOptions & {
          commitment?: Commitment;
          delinquentSlotDistance?: number;
          keepUnstakedDelinquents?: boolean;
          votePubkey?: undefined;
      } = {}

      Commitment, vote-pubkey filter, delinquent options, and call options

    Returns Promise<VoteAccountsResult>

    Object containing current and delinquent vote account arrays

    const result = await getVoteAccounts(transport);
    console.log(result.current.length, result.delinquent.length);

    1.0.0