v1

latestOpenAPI 3.1.02026-07-2612501.4 MB

PostBeaconRewardsAttestationsByEpoch

Get attestations rewards. Retrieve attestation reward info for validators specified by array of public keys or validator index. If no array is provided, return reward info for every validator.

post/{apiKey}/eth/v1/beacon/rewards/attestations/{epoch}

Path parameters

apiKeystring required
<style> .custom-style { color: #048FF4; } </style>

For higher throughput, please <span class="custom-style"><a href="../docs/quick-start-guide#-creating-your-api-key-on-the-zan-platform" target="_blank">create your own API key</a></span>.

epochstring required
Example:1

The epoch to get rewards info from

Request body

string[] required

Response

Attestation rewards

execution_optimisticboolean required

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.

finalizedboolean required

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.

Example response

{
  "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"
      }
    ]
  }
}