/eth/v1/beacon/rewards/blocks/{block_id}
/eth/v1/beacon/rewards/blocks/:block_id:
Get block rewards.
Retrieve block reward info for a single block
Example Request and Result for /v1/beacon/rewards/blocks/:block_id:
In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/beacon/rewards/blocks/{block_id}
endpoint. Additionally, we present the resulting response containing information about getting block rewards.
Parameters
Fields | Type | Description |
---|---|---|
block_id* | string | Block identifier. Can be one of: "head" (canonical head in node's view), "genesis", "finalized", <slot>, <hex encoded blockRoot with 0x prefix>. Example : head |
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 block rewards.
GET
https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/rewards/blocks/{block_id}
Path Parameters
Name | Type | Description |
---|---|---|
block_id* | string | head |
- 200: OK Expand for a detailed response example
{
"execution_optimistic": false,
"finalized": false,
"data": {
"proposer_index": "123",
"total": "123",
"attestations": "123",
"sync_aggregate": "123",
"proposer_slashings": "123",
"attester_slashings": "123"
}
}
Curl Request example
curl -X 'GET' \
'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/beacon/rewards/blocks/head' \
-H 'accept: application/json'