/ apis / beacon / genesis.yaml
genesis.yaml
 1    get:
 2      operationId: getGenesis
 3      tags:
 4        - Beacon
 5        - ValidatorRequiredApi
 6      summary: "Retrieve details of the chain's genesis."
 7      description: "Retrieve details of the chain's genesis which can be used to identify chain."
 8      responses:
 9        "200":
10          description: Request successful
11          content:
12            application/json:
13              schema:
14                type: object
15                title: GetGenesisResponse
16                properties:
17                  data:
18                    type: object
19                    properties:
20                      genesis_time:
21                        $ref: '../../beacon-node-oapi.yaml#/components/schemas/GenesisTime'
22                      genesis_validators_root:
23                        $ref: '../../beacon-node-oapi.yaml#/components/schemas/Root'
24                      genesis_fork_version:
25                        $ref: '../../beacon-node-oapi.yaml#/components/schemas/ForkVersion'
26        "404":
27          description: "Chain genesis info is not yet known"
28          content:
29            application/json:
30              schema:
31                allOf:
32                  - $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
33                  - example:
34                      code: 404
35                      message: "Chain genesis info is not yet known"
36        "500":
37          $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'