Skip to content

Commit

Permalink
Clarify requirement for validator balances body (#453)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Harris <[email protected]>
  • Loading branch information
mcdee and rolfyone authored Aug 13, 2024
1 parent af8e5e7 commit 0628244
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apis/beacon/states/validator_balances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ post:
description: |
Returns filterable list of validators balances.
Balances will be returned for all indices or public key that match known validators. If an index or public key does not
Balances will be returned for all indices or public keys that match known validators. If an index or public key does not
match any known validator, no balance will be returned but this will not cause an error. There are no guarantees for the
returned data in terms of ordering; the index is returned for each balance, and can be used to confirm for which inputs a
response has been returned.
Expand All @@ -90,7 +90,10 @@ post:
in: path
$ref: '../../../beacon-node-oapi.yaml#/components/parameters/StateId'
requestBody:
description: "An array of either hex encoded public key (any bytes48 with 0x prefix) or validator index"
description: |
An array of values, with each value either a hex encoded public key (any bytes48 with 0x prefix) or a validator index.
If the supplied list is empty (i.e. the body is `[]`) or no body is supplied then balances will be returned for all validators.
required: false
content:
application/json:
Expand Down

0 comments on commit 0628244

Please sign in to comment.