-
Notifications
You must be signed in to change notification settings - Fork 169
/
blob_sidecars.yaml
60 lines (59 loc) · 2.1 KB
/
blob_sidecars.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
get:
operationId: getBlobSidecars
summary: Get blob sidecars
description: |
Retrieves blob sidecars for a given block id.
Depending on `Accept` header it can be returned either as json or as bytes serialized by SSZ.
If the `indices` parameter is specified, only the blob sidecars with the specified indices will be returned. There are no guarantees
for the returned blob sidecars in terms of ordering.
tags:
- Beacon
parameters:
- name: block_id
in: path
required: true
$ref: '../../../beacon-node-oapi.yaml#/components/parameters/BlockId'
- name: indices
in: query
description: Array of indices for blob sidecars to request for in the specified block. Returns all blob sidecars in the block if not specified.
required: false
schema:
type: array
uniqueItems: true
items:
$ref: '../../../beacon-node-oapi.yaml#/components/schemas/Uint64'
responses:
"200":
description: "Successful response"
content:
application/json:
schema:
title: GetBlobSidecarsResponse
type: object
required: [data]
properties:
data:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/Deneb.BlobSidecars"
application/octet-stream:
schema:
description: "SSZ serialized `BlobSidecars` bytes. Use Accept header to choose this response type"
"400":
description: "The block ID supplied could not be parsed"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 400
message: "Invalid block ID: current"
"404":
description: "Block not found"
content:
application/json:
schema:
$ref: "../../../beacon-node-oapi.yaml#/components/schemas/ErrorMessage"
example:
code: 404
message: "Block not found"
"500":
$ref: "../../../beacon-node-oapi.yaml#/components/responses/InternalError"