Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add brain API #398

Merged
merged 5 commits into from
Oct 14, 2024
Merged

Add brain API #398

merged 5 commits into from
Oct 14, 2024

Conversation

pablomendezroyo
Copy link
Contributor

Add brain API for querying validators associated a tags/protocols.

API spec:

GET /api/v0/brain/validators?tag=lido&tag=lido&format=pubkey: get validators loaded in brain.

  • tag (optional): string comma separated of "obol", "diva", "ssv", "rocketpool", "stakewise", "stakehouse", "solo", "stader", "lido". If not provided will be retrived from all tags
  • format (required): one of "pubkey" | "index"

Response example

{
    "solo": ["validatorPubkey1", "validatorPubkey2"],
    "lido": ["validatorPubkey3", "validatorPubkey4"]
}

@pablomendezroyo pablomendezroyo requested a review from a team as a code owner October 14, 2024 10:12
@pablomendezroyo pablomendezroyo merged commit a17ac7c into main Oct 14, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant