/ apis / validator / block.yaml
block.yaml
 1  get:
 2    tags:
 3      - ValidatorRequiredApi
 4      - Validator
 5    operationId: "produceBlock"
 6    deprecated: true
 7    summary: "Produce a new block, without signature."
 8    description: |
 9      Requests a beacon node to produce a valid block, which can then be signed by a validator.
10  
11      __NOTE__: Supports only phase0 blocks.
12    parameters:
13      - name: slot
14        in: path
15        required: true
16        description: "The slot for which the block should be proposed."
17        schema:
18          $ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64"
19      - name: randao_reveal
20        in: query
21        required: true
22        description: "The validator's randao reveal value."
23        schema:
24          $ref: '../../beacon-node-oapi.yaml#/components/schemas/Signature'
25      - name: graffiti
26        in: query
27        required: false
28        description: "Arbitrary data validator wants to include in block."
29        schema:
30          $ref: '../../beacon-node-oapi.yaml#/components/schemas/Graffiti'
31    responses:
32      "200":
33        description: Success response
34        content:
35          application/json:
36            schema:
37              title: ProduceBlockResponse
38              type: object
39              properties:
40                data:
41                  $ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconBlock'
42      "400":
43        description: "Invalid block production request"
44        content:
45          application/json:
46            schema:
47              $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
48            examples:
49              InvalidRequest:
50                value:
51                  code: 400
52                  message: "Invalid request to produce a block"
53      "500":
54        $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'
55      "503":
56        $ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing'