-
Notifications
You must be signed in to change notification settings - Fork 169
/
syncing.yaml
38 lines (38 loc) · 1.65 KB
/
syncing.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
get:
operationId: "getSyncingStatus"
tags:
- Node
- ValidatorRequiredApi
summary: "Get node syncing status"
description: "Requests the beacon node to describe if it's currently syncing or not, and if it is, what block it is up to."
responses:
"200":
description: Request successful
content:
application/json:
schema:
title: GetSyncingStatusResponse
type: object
required: [data]
properties:
data:
type: object
required: [head_slot, sync_distance, is_syncing, is_optimistic, el_offline]
properties:
head_slot:
description: "Head slot node is trying to reach"
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64"
sync_distance:
description: "How many slots node needs to process to reach head. 0 if synced."
$ref: "../../beacon-node-oapi.yaml#/components/schemas/Uint64"
is_syncing:
type: boolean
description: "Set to true if the node is syncing, false if the node is synced."
is_optimistic:
type: boolean
description: "Set to true if the node is optimistically tracking head."
el_offline:
type: boolean
description: "Set to true if the execution client is offline."
"500":
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'