Join AWS, Dust Labs & OrangeDAO at QuickPitch. Win $80k — Apply Today.
Parameters:
Returns:
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));
import requests url = "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" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
require "uri" require "net/http" url = URI("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") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) request["accept"] = "application/json" response = https.request(request) puts response.read_body
curl -X GET \ "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" \ -H "accept: application/json"