-
Notifications
You must be signed in to change notification settings - Fork 175
/
aggregate_attestation.yaml
45 lines (43 loc) · 1.6 KB
/
aggregate_attestation.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
get:
operationId: "getAggregatedAttestation"
summary: "Get aggregated attestation"
description: |
Aggregates all attestations matching given attestation data root and slot.
A 503 error must be returned if the block identified by the response
`beacon_block_root` is optimistic (i.e. the aggregated attestation attests
to a block that has not been fully verified by an execution engine).
A 404 error must be returned if no attestation is available for the requested
`attestation_data_root`.
tags:
- ValidatorRequiredApi
- Validator
parameters:
- name: attestation_data_root
in: query
required: true
description: "HashTreeRoot of AttestationData that validator wants aggregated"
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Root'
- name: slot
in: query
required: true
schema:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
responses:
"200":
description: "Returns aggregated `Attestation` object with same `AttestationData` root."
content:
application/json:
schema:
title: GetAggregatedAttestationResponse
type: object
required: [data]
properties:
data:
$ref: '../../beacon-node-oapi.yaml#/components/schemas/Attestation'
"400":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest'
"404":
$ref: '../../beacon-node-oapi.yaml#/components/responses/NotFound'
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'