|
| 1 | +get: |
| 2 | + operationId: getBlobs |
| 3 | + summary: Get blobs |
| 4 | + description: | |
| 5 | + Retrieves blobs 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 | + If the `versioned_hashes` parameter is specified, only the blobs for the specified versioned hashes will be returned. Blobs are |
| 9 | + returned as an ordered list matching the order of their corresponding KZG commitments in the block. |
| 10 | +
|
| 11 | + After the Fulu fork, only supernodes (which custody all data columns) are required to return blobs. Clients may implement |
| 12 | + blob reconstruction logic for non-super nodes. |
| 13 | + tags: |
| 14 | + - Beacon |
| 15 | + parameters: |
| 16 | + - name: block_id |
| 17 | + in: path |
| 18 | + required: true |
| 19 | + $ref: "../../../beacon-node-oapi.yaml#/components/parameters/BlockId" |
| 20 | + - name: versioned_hashes |
| 21 | + in: query |
| 22 | + description: Array of versioned hashes for blobs to request for in the specified block. Returns all blobs in the block if not specified. |
| 23 | + required: false |
| 24 | + schema: |
| 25 | + type: array |
| 26 | + uniqueItems: true |
| 27 | + items: |
| 28 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/VersionedHash" |
| 29 | + responses: |
| 30 | + "200": |
| 31 | + description: "Successful response" |
| 32 | + content: |
| 33 | + application/json: |
| 34 | + schema: |
| 35 | + title: GetBlobsResponse |
| 36 | + type: object |
| 37 | + required: [execution_optimistic, finalized, data] |
| 38 | + properties: |
| 39 | + execution_optimistic: |
| 40 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ExecutionOptimistic" |
| 41 | + finalized: |
| 42 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Finalized" |
| 43 | + data: |
| 44 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/Blobs" |
| 45 | + application/octet-stream: |
| 46 | + schema: |
| 47 | + description: "SSZ serialized `List[Blob, MAX_BLOB_COMMITMENTS_PER_BLOCK]` bytes. Use Accept header to choose this response type" |
| 48 | + "400": |
| 49 | + description: "The block ID supplied could not be parsed" |
| 50 | + content: |
| 51 | + application/json: |
| 52 | + schema: |
| 53 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 54 | + example: |
| 55 | + code: 400 |
| 56 | + message: "Invalid block ID: current" |
| 57 | + "404": |
| 58 | + description: "Block not found" |
| 59 | + content: |
| 60 | + application/json: |
| 61 | + schema: |
| 62 | + $ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage" |
| 63 | + example: |
| 64 | + code: 404 |
| 65 | + message: "Block not found" |
| 66 | + "406": |
| 67 | + $ref: "../../../beacon-node-oapi.yaml#/components/responses/NotAcceptable" |
| 68 | + "500": |
| 69 | + $ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError" |
0 commit comments