-
Notifications
You must be signed in to change notification settings - Fork 19
/
voluntary_exit.yaml
47 lines (46 loc) · 1.78 KB
/
voluntary_exit.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
post:
operationId: signVoluntaryExit
summary: Create and sign a voluntary exit message for an active validator
description: |
Create a signed voluntary exit message for an active validator, identified by a public key known to the validator
client. This endpoint returns a `SignedVoluntaryExit` object, which can be used to initiate voluntary exit via the
beacon node's [submitPoolVoluntaryExit](https://ethereum.github.io/beacon-APIs/#/Beacon/submitPoolVoluntaryExit) endpoint.
security:
- bearerAuth: []
tags:
- Voluntary Exit
parameters:
- in: path
name: pubkey
description: "Public key of an active validator known to the validator client."
required: true
schema:
$ref: "../keymanager-oapi.yaml#/components/schemas/Pubkey"
- in: query
name: epoch
required: false
description: "Minimum epoch for processing exit. Defaults to the current epoch if not set."
schema:
$ref: '../keymanager-oapi.yaml#/components/schemas/Uint64'
responses:
"200":
description: Success response
content:
application/json:
schema:
title: SignVoluntaryExitResponse
type: object
required: [data]
properties:
data:
$ref: "../keymanager-oapi.yaml#/components/schemas/SignedVoluntaryExit"
"400":
$ref: "../keymanager-oapi.yaml#/components/responses/BadRequest"
"401":
$ref: "../keymanager-oapi.yaml#/components/responses/Unauthorized"
"403":
$ref: "../keymanager-oapi.yaml#/components/responses/Forbidden"
"404":
$ref: "../keymanager-oapi.yaml#/components/responses/NotFound"
"500":
$ref: "../keymanager-oapi.yaml#/components/responses/InternalError"