Join AWS, Dust Labs & OrangeDAO at QuickPitch. Win $80k — Apply Today.

Contents

eth-v1-validator-sync_committee_contribution REST API Endpoint

Parameters:

  1. slot - string - The slot for which a sync committee contribution should be created
  2. subcommittee_index - string - The subcommittee index for which to produce the contribution
  3. beacon_block_root - string - The block root for which to produce the contribution

Returns:

  1. Data - The object with the following values:

    slot - string - The slot at which the validator is providing a sync committee contribution

    beacon_block_root - string - The block root for this contribution

    subcommittee_index - string - The index of the subcommittee that the contribution pertains to

    aggregation_bits - string - A bit is set if a signature from the validator at the corresponding index in the subcommittee is present in the aggregate signature

    signature - string - The signature by the validator(s) over the block root of slot

Code Examples:

var myHeaders = new Headers();
myHeaders.append("accept", "application/json");

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  redirect: 'follow'
};

fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/validator/sync_committee_contribution?slot=1&subcommittee_index=1&beacon_block_root=BEACON_BLOCK_ROOT", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
Ready to get started? Create a free account