|
2 | 2 | operationId: getExecutionProofs |
3 | 3 | summary: Get execution proofs |
4 | 4 | description: | |
5 | | - Retrieves execution proofs known by the node. |
6 | | - parameters: |
7 | | - - name: new_payload_request_root |
8 | | - in: query |
9 | | - required: false |
10 | | - schema: |
11 | | - $ref: '../../../beacon-node-oapi.yaml#/components/schemas/Root' |
12 | | - description: "Filter by new payload request root" |
| 5 | + Retrieves execution proofs for a given block id. |
| 6 | + Depending on `Accept` header it can be returned either as JSON or as bytes serialized by SSZ. |
| 7 | +
|
| 8 | + Proofs are returned as an ordered list of `ProverSignedExecutionProof` objects. |
| 9 | +
|
| 10 | + Proofs are only available for recent blocks within the proof retention period. |
13 | 11 | tags: |
14 | 12 | - Beacon |
| 13 | + parameters: |
| 14 | + - name: block_id |
| 15 | + in: path |
| 16 | + required: true |
| 17 | + $ref: "../../../beacon-node-oapi.yaml#/components/parameters/BlockId" |
15 | 18 | responses: |
16 | 19 | "200": |
17 | 20 | description: Successful response |
|
20 | 23 | schema: |
21 | 24 | title: GetExecutionProofsResponse |
22 | 25 | type: object |
23 | | - required: [data] |
| 26 | + required: [execution_optimistic, finalized, data] |
24 | 27 | properties: |
| 28 | + execution_optimistic: |
| 29 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic" |
| 30 | + finalized: |
| 31 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized" |
25 | 32 | data: |
26 | 33 | type: array |
27 | 34 | items: |
28 | 35 | $ref: '../../../beacon-node-oapi.yaml#/components/schemas/EIP8025.ProverSignedExecutionProof' |
| 36 | + application/octet-stream: |
| 37 | + schema: |
| 38 | + description: "SSZ serialized `List[ProverSignedExecutionProof, MAX_EXECUTION_PROOFS_PER_PAYLOAD]` bytes. Use Accept header to choose this response type" |
29 | 39 | "400": |
30 | | - description: "The new_payload_request_root could not be parsed" |
| 40 | + description: "The block ID supplied could not be parsed" |
31 | 41 | content: |
32 | 42 | application/json: |
33 | 43 | schema: |
34 | 44 | $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
35 | 45 | example: |
36 | 46 | code: 400 |
37 | | - message: "Invalid new_payload_request_root" |
| 47 | + message: "Invalid block ID: current" |
| 48 | + "404": |
| 49 | + description: "Block not found" |
| 50 | + content: |
| 51 | + application/json: |
| 52 | + schema: |
| 53 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 54 | + example: |
| 55 | + code: 404 |
| 56 | + message: "Block not found" |
| 57 | + "406": |
| 58 | + $ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable" |
38 | 59 | "500": |
39 | 60 | $ref: '../../../beacon-node-oapi.yaml#/components/responses/InternalError' |
0 commit comments