> ## 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/rewards/blocks/{block_id}

> Get block rewards

```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/rewards/blocks/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/rewards/blocks/head" \
    -H "Content-Type: application/json"
```


## OpenAPI

````yaml nodeapi/openapi/beacon-node-oapi-v4.json GET /eth/v1/beacon/rewards/blocks/{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/rewards/blocks/{block_id}:
    get:
      tags:
        - Beacon
        - Rewards
      summary: Get block rewards
      description: >
        Retrieve block reward info for a single block. The rewards value is the
        sum

        of values of the proposer rewards from attestations, sync committees and

        slashings included in the proposal.
      operationId: getBlockRewards
      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\>.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                title: GetBlockRewardsResponse
                type: object
                required:
                  - execution_optimistic
                  - finalized
                  - data
                properties:
                  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:
                    type: object
                    description: Rewards info for a single block
                    required:
                      - proposer_index
                      - total
                      - attestations
                      - sync_aggregate
                      - proposer_slashings
                      - attester_slashings
                    properties:
                      proposer_index:
                        type: string
                        example: '1'
                        description: >-
                          proposer of the block, the proposer index who receives
                          these rewards
                      total:
                        type: string
                        example: '1'
                        description: >-
                          total block reward in gwei, equal to attestations +
                          sync_aggregate + proposer_slashings +
                          attester_slashings
                      attestations:
                        type: string
                        example: '1'
                        description: >-
                          block reward component due to included attestations in
                          gwei
                      sync_aggregate:
                        type: string
                        example: '1'
                        description: >-
                          block reward component due to included sync_aggregate
                          in gwei
                      proposer_slashings:
                        type: string
                        example: '1'
                        description: >-
                          block reward component due to included
                          proposer_slashings in gwei
                      attester_slashings:
                        type: string
                        example: '1'
                        description: >-
                          block reward component due to included
                          attester_slashings in gwei
        '400':
          description: Invalid get block rewards request
          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
              examples:
                InvalidRequest:
                  value:
                    code: 400
                    message: Invalid request to retrieve block rewards info
        '404':
          description: Block or required state 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
              examples:
                InvalidRequest:
                  value:
                    code: 404
                    message: Block or required state not found
        '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

````

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