POST /eth/v1/beacon/rewards/attestations/{epoch}

Get attestations rewards.

Using an array of public keys or a validator index, retrieve the attestation reward information for the validators. Give each validator their reward information if no array is supplied.

Example Request and Result for /v1/beacon/rewards/attestations/{epoch}

In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/rewards/attestations/{epoch} endpoint. Additionally, we present the resulting response containing information about attestations rewards.

Parameters

FieldTypeDescription

epoch*

string

The epoch to get rewards info from

The example in this section uses a non-existing project id.

Make sure you replace it with your Ethereum Holesky Beacon endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Get attestations rewards.

POST https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/rewards/attestations/<epoch>

Path Parameters

NameTypeDescription

epoch*

string

1

Request Body

NameTypeDescription

array<string>

["1232"]

{
  "data": {
    "ideal_rewards": [
      {
        "effective_balance": "32000000000",
        "head": "916",
        "target": "2376",
        "source": "1205"
      }
    ],
    "total_rewards": [
      {
        "validator_index": "1232",
        "head": "0",
        "target": "-3848",
        "source": "-2072",
        "inclusion_delay": ""
      }
    ]
  },
  "execution_optimistic": true,
  "finalized": false
}

Curl Request example

curl -X 'POST' \
  'https://eth-holesky-beacon.blastapi.io/<project_id>/eth/v1/beacon/rewards/attestations/1' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '["1232"]'

Last updated