mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Ssz state (#1749)
## Issue Addressed NA ## Proposed Changes Adds a `lighthouse/beacon/states/:state_id/ssz` endpoint to allow us to pull the genesis state from the API. ## Additional Info NA
This commit is contained in:
@@ -177,3 +177,17 @@ See [Validator Inclusion APIs](./validator-inclusion.md).
|
||||
### `/lighthouse/validator_inclusion/{epoch}/global`
|
||||
|
||||
See [Validator Inclusion APIs](./validator-inclusion.md).
|
||||
|
||||
### `/lighthouse/beacon/states/{state_id}/ssz`
|
||||
|
||||
Obtains a `BeaconState` in SSZ bytes. Useful for obtaining a genesis state.
|
||||
|
||||
The `state_id` parameter is identical to that used in the [Standard Eth2.0 API
|
||||
`beacon/state`
|
||||
routes](https://ethereum.github.io/eth2.0-APIs/#/Beacon/getStateRoot).
|
||||
|
||||
```bash
|
||||
curl -X GET "http://localhost:5052/lighthouse/beacon/states/0/ssz" | jq
|
||||
```
|
||||
|
||||
*Example omitted for brevity, the body simply contains SSZ bytes.*
|
||||
|
||||
Reference in New Issue
Block a user