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

# Attestations for a slot

> Retrieve all attestations included in the beacon block for a specific slot. You can provide a slot number or the keyword `latest` to fetch attestations from the most recently processed slot. The response lists each aggregated attestation with its source/target checkpoints, committee index, and the participating validators.



## OpenAPI

````yaml /api/v1/bundled.yaml get /api/v1/slot/{slot}/attestations
openapi: 3.0.4
info:
  title: beaconcha.in API Documentation
  license:
    name: GPL-3.0
    url: https://www.gnu.org/licenses/gpl-3.0.en.html
  description: >-
    > ⚠️ No new features or endpoints will be added to V1. We recommend the [V2
    API](/api/overview) for all new projects. See the [migration
    guide](/api/v1-to-v2-migration).

    ## Introduction

    **Advanced and reliable API for accessing comprehensive Ethereum blockchain
    data.**


    - **Free Usage Policy:** The API is free to use under a fair use policy,
    with rate limits of 10 requests per minute per IP.

    - **Caching:** All responses are cached for 1 minute.

    - **Higher Usage Plans:** For higher usage plans, visit:
    [https://beaconcha.in/pricing](https://beaconcha.in/pricing). An API key is
    required to use these plans.


    ### API Key Usage

    API keys can be obtained at
    [/user/settings](https://beaconcha.in/user/settings) and must be included in
    requests either as a query string parameter or in the request header.


    #### Example: Query String Parameter

    ```bash

    curl https://beaconcha.in/api/v1/slot/1?apikey=<your_key>

    ```


    #### Example: Request Header

    ```bash

    curl -H 'apikey: <your_key>' https://beaconcha.in/api/v1/slot/1

    ```
  contact: {}
  version: '1.1'
servers:
  - url: https://beaconcha.in
    description: Ethereum mainnet
  - url: https://hoodi.beaconcha.in
    description: Hoodi Ethereum testnet
security:
  - ApiKeyAuthQuery: []
  - ApiKeyAuthHeader: []
tags:
  - name: Epoch
    description: Data related to consensus layer epochs
  - name: Slots
    description: Data related to consensus layer slots
  - name: Validators
    description: Data related to consensus layer validators
  - name: Rewards
    description: Data related to validator rewards
  - name: Sync Committees
    description: Data related to sync committees
  - name: Rocketpool
    description: Data related to the rocketpool protocol
  - name: ETH.Store®
    description: Data related to the ETH.Store® metric
  - name: Validator deposits
    description: Data related to execution layer validator deposits
  - name: Blocks
    description: Data related to execution layer blocks
  - name: Gas
    description: Data related to gas prices
  - name: Address
    description: Data related to ethereum addresses
  - name: Network
    description: Network data
  - name: Misc
    description: Miscellaneous data
  - name: User
    description: User data
  - name: Machine Metrics
    description: Submit machine, beacon-node, and validator-client monitoring metrics
paths:
  /api/v1/slot/{slot}/attestations:
    get:
      tags:
        - Slots
      summary: Attestations for a slot
      description: >-
        Retrieve all attestations included in the beacon block for a specific
        slot. You can provide a slot number or the keyword `latest` to fetch
        attestations from the most recently processed slot. The response lists
        each aggregated attestation with its source/target checkpoints,
        committee index, and the participating validators.
      operationId: listSlotAttestations
      parameters:
        - name: slot
          in: path
          description: >-
            The slot to fetch. Provide an integer slot number (>= 0) or the
            special tag `latest` for the most recently processed slot.
          required: true
          style: simple
          explode: false
          schema:
            oneOf:
              - type: integer
                minimum: 0
                description: Slot number (>= 0)
                example: 12751688
              - type: string
                enum:
                  - latest
                description: Latest processed slot
                example: latest
      responses:
        '200':
          description: >-
            The slot was found and its attestations are returned in the `data`
            array. If the slot has no attestations, the array is empty.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/types.ApiResponse'
                  - type: object
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/types.APIAttestationResponse'
        '400':
          description: >-
            The request is invalid (for example, a negative slot or a slot in
            the future).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.ApiErrorResponse'
              examples:
                invalidSlot:
                  summary: Invalid slot parameter
                  value:
                    status: 'ERROR: invalid slot parameter'
                    data: null
                slotInFuture:
                  summary: Slot in the future
                  value:
                    status: 'ERROR: slot is in the future'
                    data: null
        '500':
          description: An unexpected server error occurred while processing your request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/types.ApiErrorResponse'
              examples:
                serverError:
                  summary: Internal error
                  value:
                    status: 'ERROR: internal server error'
                    data: null
components:
  schemas:
    types.ApiResponse:
      type: object
      description: Standard success envelope used by all API endpoints.
      properties:
        status:
          type: string
          description: >-
            HTTP-independent status of the API operation. For successful
            responses this is always "OK".
          enum:
            - OK
        data:
          description: Response payload specific to the endpoint.
          nullable: true
          x-omitempty: true
    types.APIAttestationResponse:
      type: object
      description: >-
        Aggregated attestation included in a beacon block, with committee and
        checkpoint metadata.
      properties:
        aggregationbits:
          type: string
          description: >-
            Bitfield indicating which committee members participated in this
            attestation. Encoded as 0x-prefixed hexadecimal representing the SSZ
            bitlist; one bit per member (1 = participated).
          example: '0xff'
        beaconblockroot:
          type: string
          description: >-
            Root of the beacon block being voted on (head block) as referenced
            by the attestation data (0x-prefixed, 32-byte hex).
          example: '0x94677296757527ccfd5849a6c07d179a9ed783a771c7bb305b9b9350fffd97d0'
        block_index:
          type: integer
          description: >-
            Zero-based index of this attestation within the including block’s
            attestation list.
          example: 1
        block_root:
          type: string
          description: >-
            Root of the beacon block that included this attestation
            (0x-prefixed, 32-byte hex).
          example: '0xfa4349ae9843b52cd7e9ff42e43deaf3a9220c0ae3f3dd64da9c2c97544dfd4c'
        block_slot:
          type: integer
          description: Slot number of the block that included this attestation.
          example: 12751688
        committeeindex:
          type: integer
          description: Committee index within the epoch for the attestation’s slot (>= 0).
          minimum: 0
          example: 1
        signature:
          type: string
          description: >-
            Aggregated BLS signature over the attestation data (96 bytes;
            0x-prefixed hex with 192 hex characters).
          example: '0xaa'
        slot:
          type: integer
          description: Slot that this attestation attests to (attestation data slot).
          example: 12751687
        source_epoch:
          type: integer
          description: Source checkpoint epoch of the attestation (>= 0).
          minimum: 0
          example: 398489
        source_root:
          type: string
          description: Root of the source checkpoint (0x-prefixed, 32-byte hex).
          example: '0x1c2bfaa61c0f5f7a8f8e3a16f6d0f1d4b3f2a1c0b9a8d7c6e5f4d3c2b1a0f9e8'
        target_epoch:
          type: integer
          description: Target checkpoint epoch of the attestation (>= 0).
          minimum: 0
          example: 398490
        target_root:
          type: string
          description: Root of the target checkpoint (0x-prefixed, 32-byte hex).
          example: '0x88f88f748227a397a09a7b8cbe13dab1d0411950993e618fc7a6d76d1d7d0c76'
        validators:
          type: array
          description: >-
            List of validator indices whose signatures are included in this
            aggregated attestation.
          items:
            type: integer
            minimum: 0
          example:
            - 0
            - 1
            - 2
            - 3
    types.ApiErrorResponse:
      type: object
      description: Standard error envelope returned when a request fails.
      properties:
        status:
          type: string
          description: >-
            Human-readable error indicator and message. The value begins with
            "ERROR:" followed by details.
          example: 'ERROR: <Message>'
        data:
          type: string
          description: Optional additional context for the error. Null in most cases.
          nullable: true
          default: null
  securitySchemes:
    ApiKeyAuthQuery:
      type: apiKey
      in: query
      name: apikey
      description: ''
    ApiKeyAuthHeader:
      type: apiKey
      in: header
      name: apikey
      description: ''

````