|
| 1 | +get: |
| 2 | + operationId: getPoolPayloadAttestations |
| 3 | + summary: Get payload attestations from operations pool |
| 4 | + description: Retrieves payload attestations known by the node but not necessarily incorporated into any block |
| 5 | + parameters: |
| 6 | + - name: slot |
| 7 | + in: query |
| 8 | + required: false |
| 9 | + schema: |
| 10 | + $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Uint64' |
| 11 | + tags: |
| 12 | + - Beacon |
| 13 | + responses: |
| 14 | + "200": |
| 15 | + description: Successful response |
| 16 | + content: |
| 17 | + application/json: |
| 18 | + schema: |
| 19 | + title: GetPoolPayloadAttestationsResponse |
| 20 | + type: object |
| 21 | + required: [version, data] |
| 22 | + properties: |
| 23 | + version: |
| 24 | + type: string |
| 25 | + enum: [gloas] |
| 26 | + example: "gloas" |
| 27 | + data: |
| 28 | + type: array |
| 29 | + items: |
| 30 | + $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Gloas.PayloadAttestationMessage' |
| 31 | + "400": |
| 32 | + description: "The slot could not be parsed" |
| 33 | + content: |
| 34 | + application/json: |
| 35 | + schema: |
| 36 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 37 | + example: |
| 38 | + code: 400 |
| 39 | + message: "Invalid slot parameter" |
| 40 | + "500": |
| 41 | + $ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError' |
| 42 | + |
| 43 | +post: |
| 44 | + operationId: submitPayloadAttestationMessage |
| 45 | + summary: Submit payload attestation message |
| 46 | + description: | |
| 47 | + Submits a payload attestation message to the beacon node. |
| 48 | +
|
| 49 | + The beacon node will validate the payload attestation message according to the gossip validation rules |
| 50 | + and, if valid, store it in the pool and broadcast it globally to the network. |
| 51 | +
|
| 52 | + A success response indicates that the payload attestation message passed validation and was |
| 53 | + successfully stored and broadcast. |
| 54 | + tags: |
| 55 | + - Beacon |
| 56 | + - ValidatorRequiredApi |
| 57 | + requestBody: |
| 58 | + description: "The PayloadAttestationMessage object to be submitted." |
| 59 | + required: true |
| 60 | + content: |
| 61 | + application/json: |
| 62 | + schema: |
| 63 | + $ref: "../../beacon-node-oapi.yaml#/components/schemas/Gloas.PayloadAttestationMessage" |
| 64 | + application/octet-stream: |
| 65 | + schema: |
| 66 | + description: "SSZ serialized PayloadAttestationMessage bytes. Use Content-Type header to indicate that SSZ data is contained in the request body." |
| 67 | + responses: |
| 68 | + "200": |
| 69 | + description: "The payload attestation message was stored in the pool and has been broadcast." |
| 70 | + content: |
| 71 | + text/plain: |
| 72 | + schema: |
| 73 | + type: string |
| 74 | + "400": |
| 75 | + description: "The PayloadAttestationMessage object is invalid or failed gossip validation" |
| 76 | + content: |
| 77 | + application/json: |
| 78 | + schema: |
| 79 | + $ref: "../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 80 | + "415": |
| 81 | + $ref: "../../beacon-node-oapi.yaml#/components/responses/UnsupportedMediaType" |
| 82 | + "500": |
| 83 | + $ref: "../../beacon-node-oapi.yaml#/components/responses/InternalError" |
0 commit comments