/ apis / beacon / blocks / attestations.yaml
attestations.yaml
 1  get:
 2    operationId: getBlockAttestations
 3    summary: Get block attestations
 4    description: Retrieves attestation included in requested block.
 5    tags:
 6      - Beacon
 7    parameters:
 8      - name: block_id
 9        in: path
10        $ref: '../../../beacon-node-oapi.yaml#/components/parameters/BlockId'
11    
12    responses:
13      "200":
14        description: Success
15        content:
16          application/json:
17            schema:
18              title: GetBlockAttestationsResponse
19              type: object
20              properties:
21                data:
22                  type: array
23                  items:
24                    $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation'
25      "400":
26        description: "The block ID supplied could not be parsed"
27        content:
28          application/json:
29            schema:
30              allOf:
31                - $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
32                - example:
33                    code: 400
34                    message: "Invalid block ID: current"
35      "404":
36        description: "Block not found"
37        content:
38          application/json:
39            schema:
40              allOf:
41                - $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
42                - example:
43                    code: 404
44                    message: "Block not found"
45      "500":
46        $ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"