eth-v1-validator-sync_committee_contribution
/eth/v1/validator/sync_committee_contribution
Produce a sync committee contribution
Requests that a sync committee contribution be generated by the beacon node.
If the block found in the beacon_block_root response is optimistic (i.e., the sync committee contribution points to a block that has not been fully confirmed by an execution engine), a 503 error has to be returned.
Example Request and Result for /v1/validator/sync_committee_contribution
In this section, we provide an illustrative example of a request made to retrieve details contents using the /v1/validator/sync_committee_contribution
endpoint. Additionally, we present the resulting response containing information about producing a sync committee contribution.
Parameters
Fields | String | Description |
---|---|---|
slot* | string | The slot for which a sync committee contribution should be created. |
subcommittee_index* | string | The subcommittee index for which to produce the contribution. |
beacon_block_root* | string | The block root for which to produce the contribution. |
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!
Produce a sync committee contribution.
GET
https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/validator/sync_committee_contribution
Query Parameters
Name | Type | Description |
---|---|---|
slot* | string | 1 |
subcommittee_index* | string | 1 |
beacon_block_root* | string | 0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2 |
- 200: OK Expand for a detailed response example
{
"data": {
"slot": "1",
"beacon_block_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
"subcommittee_index": "1",
"aggregation_bits": "0xffffffffffffffffffffffffffffffff",
"signature": "0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"
}
}
Curl Request example
curl -X 'GET' \
'https://eth-holesky-beacon.blastapi.io/<project-id>/eth/v1/validator/sync_committee_contribution?slot=1&subcommittee_index=1&beacon_block_root=0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2' \
-H 'accept: application/json'