Skip to content

/eth/v1/beacon/states/{state_id}/validators wrong query param names #3852

Closed
@timothysu

Description

Describe the bug
Making a request to /eth/v1/beacon/states/{state_id}/validators?id= returns the entire list of all validators.

Expected behavior
It should return one or no results filtered by the pubkey.

Steps to Reproduce
With a synced beacon node:

curl http://<lodestar-beacon-node>:9596/eth/v1/beacon/states/head/validators?id=0x92f1dd97f9eb66754108d786107a24a7b6eb6dd6d1b9de8424c8cf0dc4ec95f9f069797be7e3d2de9d71e0cad55deb17

Screenshots
n/a

Desktop (please complete the following information):

  • OS: Ubuntu 20.04 LTS
  • Version: chainsafe/lodestar:v0.34.1 via docker
  • Branch: n/a
  • Commit hash: n/a

Additional Info
It works if I use ?indicies= (and &statuses=) as identified per

getStateValidators: {params: {stateId: StateId}; query: {indices?: ValidatorId[]; statuses?: ValidatorStatus[]}};
, however per the API spec at https://ethereum.github.io/beacon-APIs/#/Beacon/getStateValidators it should be ?id=<x> (and status).

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions