Skip to content

Add SSZ support to PTC state endpoint - #661

Merged
nflaig merged 1 commit into
masterfrom
nflaig/ptc-state-ssz
Oct 7, 2026
Merged

nflaig merged 1 commit into
masterfrom
nflaig/ptc-state-ssz

Conversation

@nflaig

@nflaig nflaig commented Oct 7, 2026

Copy link
Copy Markdown
Member

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.

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

@james-prysm james-prysm left a comment

Copy link
Copy Markdown
Contributor

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 5e090cc into master Oct 7, 2026
3 checks passed
@nflaig
nflaig deleted the nflaig/ptc-state-ssz branch October 7, 2026 18:00
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.

2 participants