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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.chainstack.com/feedback

```json
{
  "path": "/reference/getvalidatorbalancesbystateidandvalidatorid",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Validator balances by state ID

The `/eth/v1/beacon/states/{state_id}/validator_balances` endpoint provides the balances of validators for a specified state in the Beacon Chain. This information is essential for tracking validators' financial stakes and rewards for participating in the Ethereum PoS mechanism.

<Check>
  **Get your own node endpoint today**

  [Start for free](https://console.chainstack.com/) and get your app to production levels immediately. No credit card required.

  You can sign up with your GitHub, X, Google, or Microsoft account.
</Check>

### Parameters

* `state_id` — the identifier for the state whose validator balances are being requested. The `state_id` can be one of the following:
  * `head` — represents the current head of the chain from the node's perspective.
  * `genesis` — refers to the genesis or initial state of the Beacon Chain.
  * `finalized` — the latest state that has been finalized and accepted by the network.
  * `justified` — a recently justified state, indicating preliminary consensus before finalization.
  * `<slot>` — a specific slot in the Ethereum protocol timeline.
  * `<hex encoded stateRoot with 0x prefix>` — a specific state root encoded in hexadecimal.

### Response

The response includes an object with the following fields:

* `data` — an array of objects representing a validator's balance in the specified state. Each object contains:
  * `index` — the index number of the validator.
  * `balance` — the current balance of the validator in Gwei.


## OpenAPI

````yaml /openapi/ethereum_beacon_chain_api/validatiors_info/validator_balances.json GET /beacon/states/{state_id}/validator_balances
openapi: 3.0.0
info:
  title: Ethereum Validator Balances API
  version: 1.0.0
servers:
  - url: >-
      https://beacon-nd-422-757-666.p2pify.com/0a9d79d93fb2f4a4b1e04695da2b77a7/eth/v1
security: []
paths:
  /beacon/states/{state_id}/validator_balances:
    get:
      summary: Get validator balances by state and ID
      operationId: getValidatorBalancesByStateIdAndValidatorId
      parameters:
        - name: state_id
          in: path
          description: >-
            State identifier, e.g., 'head', 'finalized', 'genesis', or a
            specific slot number.
          required: true
          schema:
            type: string
            default: head
        - name: id
          in: query
          description: Validator ID
          required: true
          schema:
            type: string
            default: 1
      responses:
        '200':
          description: Validator balances successfully retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidatorBalances'
        '404':
          description: Validator balances not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ValidatorBalances:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/BalanceItem'
      required:
        - data
    Error:
      type: object
      properties:
        code:
          type: integer
          format: int32
        message:
          type: string
      required:
        - code
        - message
    BalanceItem:
      type: object
      properties:
        index:
          type: string
        balance:
          type: string
      required:
        - index
        - balance

````