/ apis / config / spec.yaml
spec.yaml
 1  get:
 2    operationId: getSpec
 3    summary: Get spec params.
 4    description: |
 5      Retrieve specification configuration used on this node.  The configuration should include:
 6        - Constants for all hard forks known by the beacon node, for example the [phase 0](https://github.com/ethereum/eth2.0-specs/blob/dev/specs/phase0/beacon-chain.md#constants) and [altair](https://github.com/ethereum/eth2.0-specs/blob/dev/specs/altair/beacon-chain.md#constants) values
 7        - Presets for all hard forks supplied to the beacon node, for example the [phase 0](https://github.com/ethereum/eth2.0-specs/blob/dev/presets/mainnet/phase0.yaml) and [altair](https://github.com/ethereum/eth2.0-specs/blob/dev/presets/mainnet/altair.yaml) values
 8        - Configuration for the beacon node, for example the [mainnet](https://github.com/ethereum/eth2.0-specs/blob/dev/configs/mainnet.yaml) values
 9  
10      Values are returned with following format:
11        - any value starting with 0x in the spec is returned as a hex string
12        - numeric values are returned as a quoted integer
13    tags:
14      - Config
15      - ValidatorRequiredApi
16    responses:
17      "200":
18        description: Success
19        content:
20          application/json:
21            schema:
22              title: GetSpecResponse
23              type: object
24              properties:
25                data:
26                  description: |
27                    Key value mapping of all constants, presets and configuration values for all known hard forks
28                    Values are returned with following format:
29                      - any value starting with 0x in the spec is returned as a hex string
30                      - numeric values are returned as a quoted integer
31                  type: object
32              example:
33                'DEPOSIT_CONTRACT_ADDRESS': '0x00000000219ab540356cBB839Cbe05303d7705Fa'
34                'DEPOSIT_NETWORK_ID': '1'
35                'DOMAIN_AGGREGATE_AND_PROOF': '0x06000000'
36                'INACTIVITY_PENALTY_QUOTIENT': '67108864'
37                'INACTIVITY_PENALTY_QUOTIENT_ALTAIR': '50331648'
38      "500":
39        $ref: ../../beacon-node-oapi.yaml#/components/responses/InternalError