> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# getVoteAccounts

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

### Parameters

<ParamField query="chainId" type="string" default="solana-devnet" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="getVoteAccounts" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={[{"votePubkey":"3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw"}]} placeholder="[{&#x22;votePubkey&#x22;:&#x22;3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw&#x22;}]">
  Parameters for method getVoteAccounts: \[config].

  Positional parameters for <code>getVoteAccounts</code>:

  <ul>
    <li><code>params\[0]</code>: Optional configuration object.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="object">
  Vote account information.

  <Expandable title="properties">
    <ResponseField name="votePubkey" type="string">
      Vote account pubkey (base-58 encoded).
    </ResponseField>

    <ResponseField name="nodePubkey" type="string">
      Validator identity pubkey (base-58 encoded).
    </ResponseField>

    <ResponseField name="activatedStake" type="integer">
      Stake delegated to this vote account.
    </ResponseField>

    <ResponseField name="epochVoteAccount" type="boolean">
      True if vote account is staked for this epoch.
    </ResponseField>

    <ResponseField name="commission" type="number">
      Percentage (0-100) of rewards payout owed to vote account.
    </ResponseField>

    <ResponseField name="lastVote" type="integer">
      Most recent slot voted on by this vote account.
    </ResponseField>

    <ResponseField name="epochCredits" type="array">
      Epoch vote credits history.

      <Expandable title="items">
        <ResponseField name="items[]" type="array">
          <Expandable title="items">
            <ResponseField name="items[]" type="integer" />
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="rootSlot" type="integer">
      Current root slot for this vote account.
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=solana-devnet \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "getVoteAccounts",
      "params": [
        {
          "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw"
        }
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
      "current": [
        {
          "votePubkey": "3ZT31jkAGhUaw8jsy4bTknwBMP8i4Eueh52By4zXcsVw",
          "nodePubkey": "B97CCUW3AEZFGy6uUg6zUdnNYvnVq5VG8PUtb2HayTDD",
          "activatedStake": 42,
          "epochVoteAccount": true,
          "commission": 0,
          "lastVote": 147,
          "epochCredits": [
            "..."
          ]
        }
      ],
      "delinquent": []
    }
  }
  ```
</ResponseExample>
