Skip to content

Add POST builders query endpoint#614

Merged
nflaig merged 13 commits into
ethereum:masterfrom
rolfyone:builder-endpoint
Jun 29, 2026
Merged

Add POST builders query endpoint#614
nflaig merged 13 commits into
ethereum:masterfrom
rolfyone:builder-endpoint

Conversation

@rolfyone

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread CHANGES.md Outdated
Comment thread types/api.yaml Outdated
Comment thread types/api.yaml Outdated
Comment thread apis/beacon/states/builders.yaml Outdated
@nflaig nflaig added the Gloas api's needed in Gloas fork. label May 29, 2026
Comment thread types/api.yaml Outdated
- **1** - active: `is_active_builder(state, index)` returns `True`, i.e. `builder.deposit_epoch < state.finalized_checkpoint.epoch` and `builder.withdrawable_epoch == FAR_FUTURE_EPOCH`
- **2** - exited: `builder.withdrawable_epoch != FAR_FUTURE_EPOCH`
type: integer
enum: [0, 1, 2]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

echoing what @etan-status mentioned here #601 (comment), we might wanna follow the validators api for now and figure out a proper enum solution later, it's definitely not ideal that this api won't support ssz initially but especially for builders it should not be as problematic as there won't be that many compared to validators

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's fairly academic.
The thing i don't like about strings also is they also bloat the json output, but it does make it easier because you don't need to decode it i guess.
Also given how hard it is to change ssz this may be many hard forks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may be many hard forks.

enum ssz type doesn't require a hard fork, it will be optional so once we have a well-defined enum ssz type with a spec we can start implementing this already and clients that do have it can support ssz on the validators and builders api since adding it later is backward compatible

Comment thread CHANGES.md
@rolfyone

Copy link
Copy Markdown
Contributor Author

addressed feedback @nflaig , not going to change teku until output is agreed on, as the status output is non trivial if we go that way.

Comment thread apis/beacon/states/builders.yaml Outdated
Comment thread apis/beacon/states/builders.yaml Outdated
Comment thread apis/beacon/states/builders.yaml Outdated
Comment thread apis/beacon/states/builders.yaml Outdated
Comment thread types/gloas/builder.yaml Outdated
rolfyone and others added 2 commits June 29, 2026 20:14
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
Comment thread apis/beacon/states/builders.yaml Outdated

@nflaig nflaig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nflaig nflaig merged commit 6eaad8b into ethereum:master Jun 29, 2026
3 checks passed
@rolfyone rolfyone deleted the builder-endpoint branch June 29, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gloas api's needed in Gloas fork.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants