-
Notifications
You must be signed in to change notification settings - Fork 174
/
Copy pathsync.yaml
54 lines (54 loc) · 1.86 KB
/
sync.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
46
47
48
49
50
51
52
53
54
post:
tags:
- ValidatorRequiredApi
- Validator
summary: "Get sync committee duties"
operationId: "getSyncCommitteeDuties"
description: "Requests the beacon node to provide a set of sync committee duties for a particular epoch."
parameters:
- name: epoch
description: "epoch // EPOCHS_PER_SYNC_COMMITTEE_PERIOD <= current_epoch // EPOCHS_PER_SYNC_COMMITTEE_PERIOD + 1"
in: path
required: true
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Uint64"
requestBody:
description: "An array of the validator indices for which to obtain the duties."
required: true
content:
application/json:
schema:
title: GetSyncCommitteeDutiesBody
type: array
minItems: 1
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Uint64'
responses:
"200":
description: Success response
content:
application/json:
schema:
title: GetSyncCommitteeDutiesResponse
type: object
required: [execution_optimistic, data]
properties:
execution_optimistic:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic"
data:
type: array
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Altair.SyncDuty'
"400":
description: "Invalid epoch or index"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 400
message: "Invalid epoch: -2"
"500":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError'
"503":
$ref: '../../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing'