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

# All Batches

> Fetches all distinct batch entries with their latest information.



## OpenAPI

````yaml get /eigenda/all-batches
openapi: 3.0.1
info:
  title: OpenAPI Rescan Explorer
  description: Api reference for the Rescan Explorer
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.blockflow.network/rest
security: []
paths:
  /eigenda/all-batches:
    get:
      summary: All Batches
      description: Fetches all distinct batch entries with their latest information.
      operationId: getBatchData
      parameters:
        - name: network
          in: query
          schema:
            type: string
            enum:
              - ethereum
              - holesky
            default: holesky
          required: true
          description: Select the network you want to track.
        - name: page
          in: query
          required: false
          schema:
            type: integer
            default: 1
            description: The page number for pagination (default is 1).
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            default: 12
            description: The number of items per page (default is 12).
      responses:
        '200':
          description: Successful response with batch data
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        batchId:
                          type: string
                          description: The unique identifier for the batch.
                        batchHeaderHash:
                          type: string
                          description: The hash of the batch header.
                        blobsLength:
                          type: integer
                          description: The length of the blobs in the batch.
                        quorumNumbers:
                          type: array
                          items:
                            type: string
                            description: The quorum numbers associated with the batch.
                          description: List of quorum numbers.
                        blobHeadersRoot:
                          type: string
                          description: The root of the blob headers.
                        referenceBlockNumber:
                          type: integer
                          description: The reference block number.
                        signedStakeForQuorums:
                          type: array
                          items:
                            type: object
                            properties:
                              quorumNumber:
                                type: string
                                description: >-
                                  The quorum number for which the stake is
                                  signed.
                              stakeAmount:
                                type: integer
                                description: The amount of signed stake for the quorum.
                          description: Signed stake for each quorum.
                        transactionHash:
                          type: string
                          description: The transaction hash associated with the batch.
                        blockTimestamp:
                          type: string
                          format: date-time
                          description: The timestamp of the block.
                        blockNumber:
                          type: integer
                          description: The block number for the batch.
                        operators:
                          type: array
                          items:
                            type: object
                            properties:
                              nonSigners:
                                type: integer
                                description: The count of non-signers for the batch.
                              signers:
                                type: integer
                                description: The count of signers for the batch.
                          description: Details about operators in the batch.
                        quorumStakes:
                          type: array
                          items:
                            type: object
                            properties:
                              quorumNumber:
                                type: string
                                description: The quorum number.
                              stakeAmount:
                                type: integer
                                description: The amount of stake for the quorum.
                          description: Quorum stakes for the batch.
                  meta:
                    type: object
                    properties:
                      total:
                        type: integer
                        description: Total number of distinct batches.
                      page:
                        type: integer
                        description: The current page number.
                      limit:
                        type: integer
                        description: The number of items per page.
                      lastUpdateTimestamp:
                        type: string
                        format: date-time
                        description: The timestamp of the latest update.
                      latestBlock:
                        type: integer
                        description: The latest block number.
                      statistics:
                        type: object
                        properties:
                          totalDistinctBatches:
                            type: integer
                            description: Total number of distinct batches.
                          batchesWithNonSigners:
                            type: integer
                            description: Number of batches with non-signers.
                          batchesWithNonSignersPercentage:
                            type: number
                            format: float
                            description: Percentage of batches with non-signers.
                          batchesWithSigners:
                            type: integer
                            description: Number of batches with signers.
                          batchesWithSignersPercentage:
                            type: number
                            format: float
                            description: Percentage of batches with signers.
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '403':
          $ref: '#/components/responses/403'
        '404':
          $ref: '#/components/responses/404'
        '422':
          $ref: '#/components/responses/422'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
components:
  responses:
    '400':
      description: >-
        The server cannot or will not process the request due to something that
        is perceived to be a client error (e.g., malformed request syntax,
        invalid request message framing, or deceptive request routing).
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - bad_request
                    description: A short code indicating the error code returned.
                    example: bad_request
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: >-
                      https://docs.rescan.dev.com/api-reference/errors#bad_request
                required:
                  - code
                  - message
            required:
              - error
    '401':
      description: >-
        Although the HTTP standard specifies "unauthorized", semantically this
        response means "unauthenticated". That is, the client must authenticate
        itself to get the requested response.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - unauthorized
                    description: A short code indicating the error code returned.
                    example: unauthorized
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: >-
                      https://docs.rescan.dev.com/api-reference/errors#unauthorized
                required:
                  - code
                  - message
            required:
              - error
    '403':
      description: >-
        The client does not have access rights to the content; that is, it is
        unauthorized, so the server is refusing to give the requested resource.
        Unlike 401 Unauthorized, the client's identity is known to the server.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - forbidden
                    description: A short code indicating the error code returned.
                    example: forbidden
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: https://docs.rescan.dev.com/api-reference/errors#forbidden
                required:
                  - code
                  - message
            required:
              - error
    '404':
      description: The server cannot find the requested resource.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - not_found
                    description: A short code indicating the error code returned.
                    example: not_found
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: https://docs.rescan.dev.com/api-reference/errors#not_found
                required:
                  - code
                  - message
            required:
              - error
    '422':
      description: >-
        The request was well-formed but was unable to be followed due to
        semantic errors.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - unprocessable_entity
                    description: A short code indicating the error code returned.
                    example: unprocessable_entity
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: >-
                      https://docs.rescan.dev.com/api-reference/errors#unprocessable_entity
                required:
                  - code
                  - message
            required:
              - error
    '429':
      description: >-
        The user has sent too many requests in a given amount of time ("rate
        limiting")
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - rate_limit_exceeded
                    description: A short code indicating the error code returned.
                    example: rate_limit_exceeded
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: >-
                      https://docs.rescan.dev.com/api-reference/errors#rate_limit_exceeded
                required:
                  - code
                  - message
            required:
              - error
    '500':
      description: The server has encountered a situation it does not know how to handle.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - internal_server_error
                    description: A short code indicating the error code returned.
                    example: internal_server_error
                  message:
                    type: string
                    description: A human readable explanation of what went wrong.
                    example: The requested resource was not found.
                  doc_url:
                    type: string
                    description: >-
                      A link to our documentation with more details about this
                      error code
                    example: >-
                      https://docs.rescan.dev.com/api-reference/errors#internal_server_error
                required:
                  - code
                  - message
            required:
              - error

````