Build more with QuickNode - New pricing plans and a free tier! Read the press release

Contents

eth-v1-beacon-states-{state_id}-validator_balances RPC method

Parameters:

  1. state_id - string - (Required) State identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", "justified", {slot}, {hex encoded stateRoot with 0x prefix}.
  2. id - array - Either hex encoded public key (any bytes48 with 0x prefix) or validator index.

Returns:

  1. execution_optimistic - Boolean - True if the response references an unverified execution payload. Optimistic information may be invalidated at a later time. If the field is not present, assume the False value.
  2. Data - array[objects] - with the following values:

    index - string - Index of validator in validator registry.

    balance - string - Current validator balance in gwei.

Code Examples:

curl -X GET \
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here//eth/v1/beacon/states/head/validator_balances?id=0xb8309891538bca2c1cb416a0a60378185ea705f665b8cf7e60b4b22380145bc611fb711062a835bf599b86d04e0d449a" \
    -H "accept: application/json"
Ready to try QuickNode? Get Started