> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# /eth/v1/beacon/blob_sidecars/{block_id}

> Get blob sidecars

> [!NOTE]
>
> Responses can be several MB per block. A mainnet block with many blobs returns over 5 MB.

> [!NOTE]
>
> On Sepolia, which has activated the Gloas fork (part of the Glamsterdam upgrade), this route returns 400 for current blocks. Use [`/eth/v1/beacon/blobs/{block_id}`](https://docs.validationcloud.io/nodeapi/ethereum/beacon-api/eth-v1-beacon-blobs-block_id) to fetch blob data instead.

```bash title="Mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -X GET \
    "https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/blob_sidecars/head" \
    -H "Content-Type: application/json"
```

```bash title="Testnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl -X GET \
    "https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/eth/v1/beacon/blob_sidecars/head" \
    -H "Content-Type: application/json"
```


## OpenAPI

````yaml nodeapi/openapi/beacon-node-oapi-v4.json GET /eth/v1/beacon/blob_sidecars/{block_id}
openapi: 3.1.0
info:
  title: Eth Beacon Node API
  version: v4.0.0 - Ethereum Proof-of-Stake Consensus Specification v1.5.0
  description: >-
    Subset of the Ethereum Beacon Node API v4.0.0 for routes added after the
    v2.3.0 spec used by the other beacon pages.
servers:
  - url: https://mainnet.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/
    description: Mainnet Beacon API
  - url: https://sepolia.ethereum.validationcloud.io/v1/<YOUR_API_KEY_HERE>/
    description: Sepolia Beacon API
security: []
tags:
  - name: Beacon
    description: Set of endpoints to query beacon chain.
  - name: Config
    description: Endpoints to query chain configuration, specification, and fork schedules.
  - name: Debug
    description: Set of endpoints to debug chain and shouldn't be exposed publicly.
  - name: Node
    description: Endpoints to query node related information.
  - name: Validator
    description: Endpoints intended for validator clients.
  - name: ValidatorRequiredApi
    description: >
      Minimal set of endpoints to enable a working validator implementation.


      [Checkout validator flow](./validator-flow.md) to learn how to use this
      api.
  - name: Rewards
    description: Endpoints to query rewards and penalties for validators.
paths:
  /eth/v1/beacon/blob_sidecars/{block_id}:
    get:
      tags:
        - Beacon
      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.
      operationId: getBlobSidecars
      parameters:
        - name: block_id
          in: path
          required: true
          example: head
          schema:
            type: string
          description: >
            Block identifier.

            Can be one of: "head" (canonical head in node's view), "genesis",
            "finalized", \<slot\>, \<hex encoded blockRoot with 0x prefix\>.
        - 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:
              type: string
              example: '1'
      responses:
        '200':
          description: Successful response
          headers:
            Eth-Consensus-Version:
              description: >
                The active consensus version to which the data belongs. Required
                in response so client can deserialize returned json or ssz data 

                more effectively.
              required: true
              schema:
                type: string
                enum:
                  - phase0
                  - altair
                  - bellatrix
                  - capella
                  - deneb
                  - electra
                  - fulu
                example: electra
          content:
            application/json:
              schema:
                title: GetBlobSidecarsResponse
                type: object
                required:
                  - version
                  - execution_optimistic
                  - finalized
                  - data
                properties:
                  version:
                    type: string
                    enum:
                      - deneb
                      - electra
                    example: electra
                  execution_optimistic:
                    type: boolean
                    example: false
                    description: >-
                      True if the response references an unverified execution
                      payload. Optimistic information may be invalidated at a
                      later time. If the field is not present, assume the False
                      value.
                  finalized:
                    type: boolean
                    example: false
                    description: >-
                      True if the response references the finalized history of
                      the chain, as determined by fork choice. If the field is
                      not present, additional calls are necessary to compare the
                      epoch of the requested information with the finalized
                      checkpoint.
                  data:
                    anyOf:
                      - type: array
                        items:
                          type: object
                          description: >-
                            A blob sidecar as defined in the Deneb consensus
                            spec.
                          required:
                            - index
                            - blob
                            - kzg_commitment
                            - kzg_proof
                            - signed_block_header
                            - kzg_commitment_inclusion_proof
                          properties:
                            index:
                              type: string
                              example: '1'
                            blob:
                              type: string
                              format: hex
                              pattern: ^0x[a-fA-F0-9]{262144}$
                              description: >-
                                A blob is `FIELD_ELEMENTS_PER_BLOB *
                                size_of(BLSFieldElement) = 4096 * 32 = 131072`
                                bytes (`DATA`) representing a Blob as defined in
                                Deneb
                            kzg_commitment:
                              type: string
                              format: hex
                              pattern: ^0x[a-fA-F0-9]{96}$
                              description: >-
                                A G1 curve point. Same as BLS standard "is valid
                                pubkey" check but also allows `0x00..00` for
                                point-at-infinity
                              example: >-
                                0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a
                            kzg_proof:
                              type: string
                              format: hex
                              pattern: ^0x[a-fA-F0-9]{96}$
                              description: >-
                                A G1 curve point. Used for verifying that the
                                `KZGCommitment` for a given `Blob` is correct.
                            signed_block_header:
                              type: object
                              description: >-
                                The
                                [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#signedbeaconblockheader)
                                object envelope from the CL spec.
                              required:
                                - message
                                - signature
                              properties:
                                message:
                                  description: >-
                                    The
                                    [`BeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblockheader)
                                    object from the CL spec.
                                  allOf:
                                    - type: object
                                      required:
                                        - slot
                                        - proposer_index
                                        - parent_root
                                        - state_root
                                      properties:
                                        slot:
                                          type: string
                                          example: '1'
                                          description: >-
                                            The slot to which this block
                                            corresponds.
                                        proposer_index:
                                          type: string
                                          example: '1'
                                          description: >-
                                            Index of validator in validator
                                            registry.
                                        parent_root:
                                          type: string
                                          format: hex
                                          example: >-
                                            0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                          pattern: ^0x[a-fA-F0-9]{64}$
                                          description: >-
                                            The signing merkle root of the parent
                                            `BeaconBlock`.
                                        state_root:
                                          type: string
                                          format: hex
                                          example: >-
                                            0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                          pattern: ^0x[a-fA-F0-9]{64}$
                                          description: >-
                                            The tree hash merkle root of the
                                            `BeaconState` for the `BeaconBlock`.
                                    - type: object
                                      required:
                                        - body_root
                                      properties:
                                        body_root:
                                          type: string
                                          format: hex
                                          example: >-
                                            0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                          pattern: ^0x[a-fA-F0-9]{64}$
                                          description: >-
                                            The tree hash merkle root of the
                                            `BeaconBlockBody` for the `BeaconBlock`
                                signature:
                                  type: string
                                  format: hex
                                  pattern: ^0x[a-fA-F0-9]{192}$
                                  example: >-
                                    0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505
                            kzg_commitment_inclusion_proof:
                              type: array
                              items:
                                type: string
                                format: hex
                                example: >-
                                  0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                pattern: ^0x[a-fA-F0-9]{64}$
                              minItems: 17
                              maxItems: 17
                        minItems: 0
                        maxItems: 9
                      - type: array
                        items:
                          type: object
                          description: >-
                            A blob sidecar as defined in the Deneb consensus
                            spec.
                          required:
                            - index
                            - blob
                            - kzg_commitment
                            - kzg_proof
                            - signed_block_header
                            - kzg_commitment_inclusion_proof
                          properties:
                            index:
                              type: string
                              example: '1'
                            blob:
                              type: string
                              format: hex
                              pattern: ^0x[a-fA-F0-9]{262144}$
                              description: >-
                                A blob is `FIELD_ELEMENTS_PER_BLOB *
                                size_of(BLSFieldElement) = 4096 * 32 = 131072`
                                bytes (`DATA`) representing a Blob as defined in
                                Deneb
                            kzg_commitment:
                              type: string
                              format: hex
                              pattern: ^0x[a-fA-F0-9]{96}$
                              description: >-
                                A G1 curve point. Same as BLS standard "is valid
                                pubkey" check but also allows `0x00..00` for
                                point-at-infinity
                              example: >-
                                0x93247f2209abcacf57b75a51dafae777f9dd38bc7053d1af526f220a7489a6d3a2753e5f3e8b1cfe39b56f43611df74a
                            kzg_proof:
                              type: string
                              format: hex
                              pattern: ^0x[a-fA-F0-9]{96}$
                              description: >-
                                A G1 curve point. Used for verifying that the
                                `KZGCommitment` for a given `Blob` is correct.
                            signed_block_header:
                              type: object
                              description: >-
                                The
                                [`SignedBeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#signedbeaconblockheader)
                                object envelope from the CL spec.
                              required:
                                - message
                                - signature
                              properties:
                                message:
                                  description: >-
                                    The
                                    [`BeaconBlockHeader`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblockheader)
                                    object from the CL spec.
                                  allOf:
                                    - type: object
                                      required:
                                        - slot
                                        - proposer_index
                                        - parent_root
                                        - state_root
                                      properties:
                                        slot:
                                          type: string
                                          example: '1'
                                          description: >-
                                            The slot to which this block
                                            corresponds.
                                        proposer_index:
                                          type: string
                                          example: '1'
                                          description: >-
                                            Index of validator in validator
                                            registry.
                                        parent_root:
                                          type: string
                                          format: hex
                                          example: >-
                                            0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                          pattern: ^0x[a-fA-F0-9]{64}$
                                          description: >-
                                            The signing merkle root of the parent
                                            `BeaconBlock`.
                                        state_root:
                                          type: string
                                          format: hex
                                          example: >-
                                            0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                          pattern: ^0x[a-fA-F0-9]{64}$
                                          description: >-
                                            The tree hash merkle root of the
                                            `BeaconState` for the `BeaconBlock`.
                                    - type: object
                                      required:
                                        - body_root
                                      properties:
                                        body_root:
                                          type: string
                                          format: hex
                                          example: >-
                                            0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                          pattern: ^0x[a-fA-F0-9]{64}$
                                          description: >-
                                            The tree hash merkle root of the
                                            `BeaconBlockBody` for the `BeaconBlock`
                                signature:
                                  type: string
                                  format: hex
                                  pattern: ^0x[a-fA-F0-9]{192}$
                                  example: >-
                                    0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505
                            kzg_commitment_inclusion_proof:
                              type: array
                              items:
                                type: string
                                format: hex
                                example: >-
                                  0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2
                                pattern: ^0x[a-fA-F0-9]{64}$
                              minItems: 17
                              maxItems: 17
                        minItems: 0
                        maxItems: 6
            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:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      Either specific error code in case of invalid request or
                      http status code
                    type: number
                    example: 404
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 400
                message: 'Invalid block ID: current'
        '404':
          description: Block not found
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      Either specific error code in case of invalid request or
                      http status code
                    type: number
                    example: 404
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 404
                message: Block not found
        '406':
          description: Accepted media type is not supported.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      The media type in "Accept" header is unsupported, and the
                      request has been rejected. This occurs when the server
                      cannot produce a response in the format accepted by the
                      client.
                    type: number
                    example: 406
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 406
                message: Accepted media type not supported
        '500':
          description: Beacon node internal error.
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    description: >-
                      Either specific error code in case of invalid request or
                      http status code
                    type: number
                    example: 404
                  message:
                    description: Message describing error
                    type: string
                  stacktraces:
                    description: Optional stacktraces, sent when node is in debug mode
                    type: array
                    items:
                      type: string
              example:
                code: 500
                message: Internal server error
      deprecated: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.