forked from ethereum/beacon-APIs
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0da1243
commit fe3cc11
Showing
6 changed files
with
111 additions
and
19 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
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,85 @@ | ||
get: | ||
operationId: getPoolAttestationsV2 | ||
summary: Get Attestations from operations pool | ||
description: Retrieves attestations known by the node but not necessarily incorporated into any block | ||
parameters: | ||
- name: slot | ||
in: query | ||
required: false | ||
schema: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Uint64' | ||
- name: committee_index | ||
in: query | ||
required: false | ||
schema: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Uint64' | ||
tags: | ||
- Beacon | ||
responses: | ||
"200": | ||
description: Successful response | ||
headers: | ||
Eth-Consensus-Version: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/headers/Eth-Consensus-Version' | ||
content: | ||
application/json: | ||
schema: | ||
title: GetPoolAttestationsV2Response | ||
type: object | ||
required: [data] | ||
properties: | ||
data: | ||
anyOf: | ||
- type: array | ||
items: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation' | ||
- type: array | ||
items: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation' | ||
"400": | ||
description: "The slot or committee index could not be parsed" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" | ||
example: | ||
code: 400 | ||
message: "Invalid slot: current" | ||
"500": | ||
$ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError' | ||
|
||
post: | ||
operationId: submitPoolAttestationsV2 | ||
summary: Submit Attestation objects to node | ||
description: | | ||
Submits Attestation objects to the node. Each attestation in the request body is processed individually. | ||
If an attestation is validated successfully the node MUST publish that attestation on the appropriate subnet. | ||
If one or more attestations fail validation the node MUST return a 400 error with details of which attestations have failed, and why. | ||
tags: | ||
- Beacon | ||
- ValidatorRequiredApi | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
anyOf: | ||
- type: array | ||
items: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Attestation' | ||
- type: array | ||
items: | ||
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Electra.Attestation' | ||
responses: | ||
"200": | ||
description: Attestations are stored in pool and broadcast on appropriate subnet | ||
"400": | ||
description: "Errors with one or more attestations" | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/IndexedErrorMessage" | ||
"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
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