The API endpoint for downloading the initial state has changed
benjaminion opened this issue · 0 comments
benjaminion commented
Describe the bug
Under Safely sync your node the API endpoint /teku/v1/beacon/states/<state-id>
is shown. This endpoint is now deprecated.
Check the issue type in the following list (insert X instead of space between [ ]): -->
- Missing content
- Outdated content
- Wrong content
- Confusing or misleading content
- Other
The broken page
https://docs.teku.consensys.net/en/latest/Concepts/Weak-Subjectivity/#safely-sync-your-node
Change suggestion
Instead, use the endpoint /eth/v1/debug/beacon/states/finalized
and specify application/octet-stream
in the Accept header, thus:
curl -X GET "http://localhost:5051/eth/v1/debug/beacon/states/finalized" -H "accept: application/octet-stream" -o state.ssz