Repository navigation
Add PTC state endpoint - #657
Merged
Merged
Conversation
nflaig
marked this pull request as ready for review
September 26, 2026 14:58
nflaig
commented
Sep 26, 2026
| $ref: "./apis/beacon/states/committee.yaml" | ||
| /eth/v1/beacon/states/{state_id}/sync_committees: | ||
| $ref: "./apis/beacon/states/sync_committees.yaml" | ||
| /eth/v1/beacon/states/{state_id}/ptc: |
Member
Author
There was a problem hiding this comment.
alternatively, or in addition could add a /eth/v1/beacon/states/{state_id}/ptc_window endpoint, similar to the existing /proposer_lookahead endpoint
chong-he
reviewed
Oct 6, 2026
4 tasks done
nflaig
added a commit
to ChainSafe/lodestar
that referenced
this pull request
Oct 7, 2026
**Motivation** Implement ethereum/beacon-APIs#657 and SSZ support from ethereum/beacon-APIs#661 so consumers can retrieve the PTC for a slot without fetching the full state. **Description** - add the endpoint to the API client and beacon node with JSON and SSZ responses - preserve committee order and duplicates, default to the state's slot and validate the fork and PTC window - cover the endpoint with client/server tests and focused handler tests
nflaig
added a commit
that referenced
this pull request
Oct 7, 2026
Adds SSZ responses to `GET /eth/v1/beacon/states/{state_id}/ptc`,
encoding `slot` and `validators` in a container, following the validator
balances endpoint.
Follow-up to #657.
2 tasks
allpacat
pushed a commit
to allpacat/prysm
that referenced
this pull request
Oct 9, 2026
…s#17641) **What type of PR is this?** Feature **What does this PR do? Why is it needed?** - Implements [ethereum/beacon-APIs#657](ethereum/beacon-APIs#657): returns the payload timeliness committee for the requested slot from the given state, read from the state's PTC window via the existing `get_ptc` getter. - The slot defaults to the state's slot; pre-Gloas states and slots and slots outside the window return 400. **Which issue(s) does this PR fix?** Fixes # **Other notes for review** **Acknowledgements** - [x] I have read [CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md). - [x] I have included a uniquely named [changelog fragment file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd). - [x] I have added a description with sufficient context for reviewers to understand this PR. - [x] I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
GET /eth/v1/beacon/states/{state_id}/ptcto retrieve the ordered PTC for a slot without fetching the full state.Returns the slot and validator indices, preserving duplicates. Defaults to the state's slot and rejects pre-Gloas slots and slots outside the state's PTC window.
Closes #623