@circle-fin/usdckit - v0.22.0
    Preparing search index...

    Function getVoteAccounts

    • Gets the account info and associated stake for all the voting accounts

      Parameters

      • client: ExtendedViemClient

        Extended Viem client

      • ...params: [
            config?: Readonly<
                {
                    commitment?: Commitment;
                    delinquentSlotDistance?: bigint;
                    keepUnstakedDelinquents?: boolean;
                    votePubkey?: Address;
                },
            >,
        ]

        Parameters for sol_getVoteAccounts

      Returns Promise<
          Readonly<
              {
                  current: readonly Readonly<
                      {
                          activatedStake: bigint;
                          commission: number;
                          epochCredits: readonly EpochCredit[];
                          epochVoteAccount: boolean;
                          lastVote: bigint;
                          nodePubkey: Address;
                          rootSlot: bigint;
                          votePubkey: Address;
                      },
                  >[];
                  delinquent: readonly Readonly<
                      {
                          activatedStake: bigint;
                          commission: number;
                          epochCredits: readonly EpochCredit[];
                          epochVoteAccount: boolean;
                          lastVote: bigint;
                          nodePubkey: Address;
                          rootSlot: bigint;
                          votePubkey: Address;
                      },
                  >[];
              },
          >,
      >

      Promise resolving to vote accounts information