Skip to content

Commit aa8a636

Browse files
committed
payload attestation post should support an array in the request
1 parent 04a6d7a commit aa8a636

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

apis/beacon/pool/payload_attestations.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,15 @@ post:
4747
operationId: submitPayloadAttestationMessage
4848
summary: Submit payload attestation message
4949
description: |
50-
Submits a payload attestation message to the beacon node.
50+
Submits payload attestation messages to the beacon node.
5151
52-
The beacon node will validate the payload attestation message according to the gossip validation rules
52+
The beacon node will validate each payload attestation message according to the gossip validation rules
5353
and, if valid, store it in the pool and broadcast it globally to the network.
5454
5555
A success response indicates that the payload attestation message passed validation and was
5656
successfully stored and broadcast.
57+
58+
If one or more payload attestation messages fail validation, the node MUST return a 400 error with details of which messages have failed, and why.
5759
parameters:
5860
- in: header
5961
schema:
@@ -65,28 +67,26 @@ post:
6567
- Beacon
6668
- ValidatorRequiredApi
6769
requestBody:
68-
description: "The PayloadAttestationMessage object to be submitted."
70+
description: "Array of PayloadAttestationMessage objects to be submitted."
6971
required: true
7072
content:
7173
application/json:
7274
schema:
73-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Gloas.PayloadAttestationMessage"
75+
type: array
76+
items:
77+
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Gloas.PayloadAttestationMessage"
7478
application/octet-stream:
7579
schema:
76-
description: "SSZ serialized PayloadAttestationMessage bytes. Use Content-Type header to indicate that SSZ data is contained in the request body."
80+
description: "SSZ serialized array of PayloadAttestationMessage bytes. Use Content-Type header to indicate that SSZ data is contained in the request body."
7781
responses:
7882
"200":
79-
description: "The payload attestation message was stored in the pool and has been broadcast."
80-
content:
81-
text/plain:
82-
schema:
83-
type: string
83+
description: "Payload attestation messages are stored in pool and broadcasted to the network"
8484
"400":
85-
description: "The PayloadAttestationMessage object is invalid or failed gossip validation"
85+
description: "Errors with one or more payload attestation messages"
8686
content:
8787
application/json:
8888
schema:
89-
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
89+
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/IndexedErrorMessage"
9090
"415":
9191
$ref: "../../../beacon-node-oapi.yaml#/components/responses/UnsupportedMediaType"
9292
"500":

0 commit comments

Comments
 (0)