-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
409e11a
commit 7109932
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
post: | ||
operationId: "registerValidator" | ||
summary: Provide beacon node with registrations for the given validators to the external builder network. | ||
description: | | ||
Prepares the beacon node for engaging with external builders. The | ||
information will be sent by the beacon node to each external builders it is | ||
connected to. It is expected that the validator client will send this | ||
information periodically to ensure the beacon node has correct and timely | ||
registration information to provide to builders. The validator client | ||
should not sign blinded beacon blocks that do not adhere to their latest | ||
fee recipient and gas limit preferences. | ||
Note that requests containing currently inactive or unknown validator | ||
indices will be accepted, as they may become active at a later epoch. | ||
tags: | ||
- Validator | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/SignedValidatorRegistration' | ||
responses: | ||
"200": | ||
description: | | ||
Preparation information has been received. | ||
"400": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest' | ||
"500": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ValidatorRegistration: | ||
type: object | ||
description: "The [`ValidatorRegistration`]() object from the Builder API spec." | ||
properties: | ||
fee_recipient: | ||
allOf: | ||
- $ref: '../beacon-apis/types/primitive.yaml#/ExecutionAddress' | ||
- description: "Address to receive fees from the block." | ||
gas_limit: | ||
allOf: | ||
- $ref: "../beacon-apis/types/primitive.yaml#/Uint64" | ||
- description: "Gas limit the validator desires to target." | ||
timestamp: | ||
allOf: | ||
- $ref: '../beacon-apis/types/primitive.yaml#/Uint64' | ||
- description: "Unix timestamp of registration." | ||
pubkey: | ||
allOf: | ||
- $ref: '../beacon-apis/types/primitive.yaml#/Pubkey' | ||
- description: "BLS public key of validator." | ||
|
||
SignedValidatorRegistration: | ||
type: object | ||
description: "The [`SignedValidatorRegistration`]() object from the Builder API spec." | ||
properties: | ||
message: | ||
$ref: "#/ValidatorRegistration" | ||
signature: | ||
$ref: "../beacon-apis/types/primitive.yaml#/Signature" |