/ apis / node / peer_count.yaml
peer_count.yaml
 1  get:
 2    operationId: getPeerCount
 3    tags:
 4      - Node
 5    summary: Get peer count
 6    description: Retrieves number of known peers.
 7    responses:
 8      "200":
 9        description: Request successful
10        content:
11          application/json:
12            schema:
13              title: GetPeerCountResponse
14              type: object
15              properties:
16                data:
17                  type: object
18                  properties: 
19                    disconnected:
20                      allOf:
21                        - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
22                        - example: "12"
23                    connecting:
24                      allOf:
25                        - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
26                        - example: "34"
27                    connected:
28                      allOf:
29                        - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
30                        - example: "56"
31                    disconnecting:
32                      allOf:
33                        - $ref: '../../beacon-node-oapi.yaml#/components/schemas/Uint64'
34                        - example: "5"
35      "500":
36        $ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError'