/ apis / debug / state.yaml
state.yaml
 1  get:
 2    operationId: "getState"
 3    summary: "Get full BeaconState object"
 4    deprecated: true
 5    description: |
 6       Returns full BeaconState object for given stateId.
 7       Depending on `Accept` header it can be returned either as json or as bytes serialized by SSZ
 8    tags:
 9      - Debug
10    parameters:
11      - name: state_id
12        in: path
13        required: true
14        $ref: '../../beacon-node-oapi.yaml#/components/parameters/StateId'
15    responses:
16      "200":
17        description: Success
18        content:
19          application/json:
20            schema:
21              title: GetStateResponse
22              type: object
23              properties:
24                data:
25                  $ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconState'
26          application/octet-stream:
27            schema:
28              description: "SSZ serialized state bytes. Use Accept header to choose this response type"
29      "400":
30        description: "Invalid state ID"
31        content:
32          application/json:
33            schema:
34              allOf:
35                - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
36                - example:
37                    code: 400
38                    message: "Invalid state ID: current"
39      "404":
40        description: "State not found"
41        content:
42          application/json:
43            schema:
44              allOf:
45                - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
46                - example:
47                    code: 404
48                    message: "State not found"
49      "500":
50        $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
51