We're now supporting Polygon zkEVM!
Learn more here.
Parameters:
Returns:
index - string - The committee index at a slot
slot - string - The slot
validators - array - The list of validator indices assigned to this committee
Code Examples:
require "uri" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/states/head/committees") 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
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/beacon/states/head/committees", 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/beacon/states/head/committees" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
curl -X GET \ "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/states/head/committees" \ -H "accept: application/json"