Skip to main content

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


POST /eth/v1/beacon/rewards/attestations/:epoch:

Get attestations rewards

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

Example Request and Result for /v1/beacon/rewards/attestations/:epoch:

Stashed changes

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 getting attestations rewards.

Parameters

FieldsTypeDescription

epoch*

stringThe epoch to get rewards info from
info

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*string1
{
"execution_optimistic": false,
"finalized": false,
"data": {
"ideal_rewards": [
{
"effective_balance": "1000000000",
"head": "2500",
"target": "5000",
"source": "5000",
"inclusion_delay": "5000",
"inactivity": "5000"
}
],
"total_rewards": [
{
"validator_index": "0",
"head": "2000",
"target": "2000",
"source": "4000",
"inclusion_delay": "2000",
"inactivity": "2000"
}
]
}
}

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 '[
"string"
]'