You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new endpoint has been recently added to the beacon APIs to query validators from the beacon chain
POST /eth/v1/beacon/states/{state_id}/validators
Note that we already have an endpoint for the same purpose of querying validators, but it's a GET that takes in validator pubkeys/indices in a query parameter
GET /eth/v1/beacon/states/{state_id}/validators
🛠️ Proposed solution
Implement the new POST endpoint in core/validatorapi.
This will probably require us to read the bytes in the request body (router.go):
Cherrypick of #2849.
Needed to avoid serializing the whole validator list on POST `get_validator` requests.
--
Implemented POST get validators endpoint.
category: feature
ticket: #2840
🎯 Problem to be solved
A new endpoint has been recently added to the
beacon APIs
to query validators from the beacon chainNote that we already have an endpoint for the same purpose of querying validators, but it's a
GET
that takes in validator pubkeys/indices in a query parameter🛠️ Proposed solution
Implement the new POST endpoint in
core/validatorapi
.This will probably require us to read the bytes in the request body (
router.go
):So, one approach might be to:
🧪 Tests
The text was updated successfully, but these errors were encountered: