/eth/v1/beacon/states/{state_id}/sync_committees RPC Method
Parameters
state_id
string
REQUIRED
The state identifier. It can be one of: head (canonical head in node's view), genesis, finalized, justified, slot and stateRoot (hex encoded stateRoot with 0x prefix)
epoch
string
The fetch sync committees for the given epoch. If not present then the sync committees for the epoch of the state will be obtained
Returns
execution_optimistic
Boolean
It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value
data
The object with the following values:
validators
array
All of the validator indices in the current sync committee
validator_aggregate
array
The subcommittee slices of the current sync committee
Request
curl -X GET \ "https://docs-demo.quiknode.pro/eth/v1/beacon/states/head/sync_committees" \ -H "accept: application/json"
var myHeaders = new Headers(); myHeaders.append("accept", "application/json"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; fetch("https://docs-demo.quiknode.pro/eth/v1/beacon/states/head/sync_committees", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
import requests url = "https://docs-demo.quiknode.pro/eth/v1/beacon/states/head/sync_committees" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)
require "uri" require "net/http" url = URI("https://docs-demo.quiknode.pro/eth/v1/beacon/states/head/sync_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
Response
{ "execution_optimistic": false, "finalized": false, "data": { "validators": [ "1701470", "1491166", "1738639", "706204", "1345859", "279514", "571802", "1236886", "1698180", "1579656", "569891", "1188908", "856848", "382036", "927864", "213763", "1404380", "356202", "544891", "1314860", "1607300", "479323", "1055117", "785397", "911953", "427388", "835034", "1731699", "1047149", "1346347", "1609460", "42713", "1386043", "320281", "1458116", "1706974", "1651086", "1099309", "589940", "88402", "566125", "1880443", "1354693", "1676919", "1397132", "536676", "790150", "783182", "1628694", "1617187", "1220622", "28526", "1809457", "13628", "785262", "871", "936989", "735661", "1228158", "1353681", "1170138", "923473", "1272699", "954159", "371963", "687712", "1061566", "11775", "569578", "1279867", "1415409", "544386", "1727004", "776040", "44665", "1752321", "1062103", "1735705", "28626", "1724659", "226438", "1270509", "1879664", "1757724", "832469", "545098", "1812532", "1056970", "456292", "1825209", "438316", "535187", "1191126", "1805674", "1484371", "1449139", "1297754", "488316", "861527", "1264491", "1666213", "9663", "1865366", "1152813", "1775835", "1436014", "1207665", "226478", "1484568", "1050674", "1792572", "1794475", "714566", "182334", "1461325", "1323333", "896701", "715841", "1381451", "1879931", "425673", "1851088", "1726244", "1099756", "1294848", "1431512", "1716165", "10174", "267378", "159638", "1600574", "1197471", "955234", "494792", "1126941", "930111", "1851889", "641988", "995133", "1813178", "1019112", "1190073", "634590", "1644382", "722990", "1140766", "855711", "1494386", "1341694", "225717", "740180", "307541", "692210", "760326", "400574", "1697459", "69691", "1827531", "905734", "728385", "1715128", "1684584", "1837381", "857576", "1271472", "39253", "1482281", "535079", "920672", "961996", "1685789", "1411958", "1534637", "720525", "850582", "1643507", "1394385", "1754535", "1589809", "787691", "1389631", "1705936", "519064", "1055576", "1582591", "978249", "1756743", "1731780", "616443", "707918", "177639", "1549441", "612300", "1160504", "1859439", "830152", "330066", "1794943", "778919", "1455004", "969782", "1706457", "1596649", "538586", "659467", "1189237", "653579", "229762", "814465", "1793471", "138370", "533243", "1020675", "1725546", "48545", "624006", "1121498", "1212290", "1792304", "426558", "547010", "1313728", "1521427", "626055", "1890203", "464025", "1754283", "690975", "781828", "401182", "612093", "1441327", "1799388", "1355824", "1844420", "380689", "824815", "1056429", "390486", "789442", "697416", "191875", "372006", "1306767", "726754", "1069980", "724619", "1765151", "415250", "1747604", "710627", "900904", "1287243", "1066535", "1866833", "356959", "1834843", "620830", "942038", "401925", "1744367", "1742702", "1722894", "1105446", "393782", "252686", "424962", "1557952", "1107730", "1484748", "1805350", "1715031", "1707642", "695099", "574531", "1545941", "1290828", "1821929", "731921", "1869928", "1740385", "220354", "1680447", "1622979", "300024", "67302", "803179", "1382612", "1468999", "1094002", "94659", "1557372", "913208", "843146", "742195", "641888", "691263", "664611", "1891687", "1583202", "1019894", "174560", "1374261", "1868621", "20034", "1278643", "1080278", "1452579", "152664", "1373372", "1303333", "880268", "1892388", "1542676", "1259398", "1515038", "1167934", "1817698", "537030", "1379629", "1515607", "770196", "1462981", "1549065", "1278038", "1195407", "219822", "1273927", "1186810", "1449647", "1191524", "1043371", "871667", "350067", "1397648", "1782400", "1770697", "1843579", "1654578", "1771939", "533775", "1353334", "1850790", "446684", "1521116", "278684", "22949", "9768", "1624387", "1575885", "725304", "1888982", "1875234", "1870445", "1766940", "992546", "377973", "1839087", "534581", "1572035", "657231", "708705", "480015", "1853654", "352369", "1028040", "1691097", "37043", "70256", "921165", "711200", "1486045", "318809", "1064210", "579472", "1775711", "1844163", "1552703", "1683789", "1752817", "1692357", "1720582", "148094", "466739", "313262", "1423714", "571706", "1772236", "1629593", "1774358", "219710", "326919", "1877641", "1013686", "1761203", "1353645", "205193", "1282054", "1060462", "1555075", "1630174", "982930", "414663", "318321", "1108613", "992963", "813442", "1271234", "480549", "1885570", "1873827", "602618", "1453780", "1131245", "389072", "696154", "1679114", "1603741", "1839815", "530744", "1411792", "705107", "378680", "112964", "1839502", "1710253", "1615588", "1057920", "1738390", "816321", "1053808", "848627", "540693", "1035853", "323331", "1511250", "1332947", "1474791", "1306141", "1860247", "5533", "407510", "1613455", "460194", "988549", "363308", "151356", "1886431", "801944", "496031", "1173891", "62667", "1834670", "659699", "1648960", "220329", "1862781", "343279", "1693351", "1793784", "354089", "229787", "358805", "1594624", "1138258", "1719821", "1814443", "407935", "1758545", "1528125", "1425499", "341444", "728158", "1072297", "1869487", "924643", "1429616", "1654027", "969668", "1662690", "1382063", "38092", "329782", "521495", "965898", "1814272", "1446770", "1195142", "941720", "353954", "929626", "792351", "1536941", "1565065", "1742522", "1150072", "890621", "1008651", "724753", "1448978", "805682", "376564", "1801403", "1830255", "8912", "639833", "1669771", "1616097", "1404327", "1830191", "1439612", "1131520" ], "validator_aggregates": [ [ "1701470", "1491166", "1738639", "706204", "1345859", "279514", "571802", "1236886", "1698180", "1579656", "569891", "1188908", "856848", "382036", "927864", "213763", "1404380", "356202", "544891", "1314860", "1607300", "479323", "1055117", "785397", "911953", "427388", "835034", "1731699", "1047149", "1346347", "1609460", "42713", "1386043", "320281", "1458116", "1706974", "1651086", "1099309", "589940", "88402", "566125", "1880443", "1354693", "1676919", "1397132", "536676", "790150", "783182", "1628694", "1617187", "1220622", "28526", "1809457", "13628", "785262", "871", "936989", "735661", "1228158", "1353681", "1170138", "923473", "1272699", "954159", "371963", "687712", "1061566", "11775", "569578", "1279867", "1415409", "544386", "1727004", "776040", "44665", "1752321", "1062103", "1735705", "28626", "1724659", "226438", "1270509", "1879664", "1757724", "832469", "545098", "1812532", "1056970", "456292", "1825209", "438316", "535187", "1191126", "1805674", "1484371", "1449139", "1297754", "488316", "861527", "1264491", "1666213", "9663", "1865366", "1152813", "1775835", "1436014", "1207665", "226478", "1484568", "1050674", "1792572", "1794475", "714566", "182334", "1461325", "1323333", "896701", "715841", "1381451", "1879931", "425673", "1851088", "1726244", "1099756", "1294848", "1431512", "1716165", "10174" ], [ "267378", "159638", "1600574", "1197471", "955234", "494792", "1126941", "930111", "1851889", "641988", "995133", "1813178", "1019112", "1190073", "634590", "1644382", "722990", "1140766", "855711", "1494386", "1341694", "225717", "740180", "307541", "692210", "760326", "400574", "1697459", "69691", "1827531", "905734", "728385", "1715128", "1684584", "1837381", "857576", "1271472", "39253", "1482281", "535079", "920672", "961996", "1685789", "1411958", "1534637", "720525", "850582", "1643507", "1394385", "1754535", "1589809", "787691", "1389631", "1705936", "519064", "1055576", "1582591", "978249", "1756743", "1731780", "616443", "707918", "177639", "1549441", "612300", "1160504", "1859439", "830152", "330066", "1794943", "778919", "1455004", "969782", "1706457", "1596649", "538586", "659467", "1189237", "653579", "229762", "814465", "1793471", "138370", "533243", "1020675", "1725546", "48545", "624006", "1121498", "1212290", "1792304", "426558", "547010", "1313728", "1521427", "626055", "1890203", "464025", "1754283", "690975", "781828", "401182", "612093", "1441327", "1799388", "1355824", "1844420", "380689", "824815", "1056429", "390486", "789442", "697416", "191875", "372006", "1306767", "726754", "1069980", "724619", "1765151", "415250", "1747604", "710627", "900904", "1287243", "1066535", "1866833", "356959" ], [ "1834843", "620830", "942038", "401925", "1744367", "1742702", "1722894", "1105446", "393782", "252686", "424962", "1557952", "1107730", "1484748", "1805350", "1715031", "1707642", "695099", "574531", "1545941", "1290828", "1821929", "731921", "1869928", "1740385", "220354", "1680447", "1622979", "300024", "67302", "803179", "1382612", "1468999", "1094002", "94659", "1557372", "913208", "843146", "742195", "641888", "691263", "664611", "1891687", "1583202", "1019894", "174560", "1374261", "1868621", "20034", "1278643", "1080278", "1452579", "152664", "1373372", "1303333", "880268", "1892388", "1542676", "1259398", "1515038", "1167934", "1817698", "537030", "1379629", "1515607", "770196", "1462981", "1549065", "1278038", "1195407", "219822", "1273927", "1186810", "1449647", "1191524", "1043371", "871667", "350067", "1397648", "1782400", "1770697", "1843579", "1654578", "1771939", "533775", "1353334", "1850790", "446684", "1521116", "278684", "22949", "9768", "1624387", "1575885", "725304", "1888982", "1875234", "1870445", "1766940", "992546", "377973", "1839087", "534581", "1572035", "657231", "708705", "480015", "1853654", "352369", "1028040", "1691097", "37043", "70256", "921165", "711200", "1486045", "318809", "1064210", "579472", "1775711", "1844163", "1552703", "1683789", "1752817", "1692357", "1720582", "148094", "466739" ], [ "313262", "1423714", "571706", "1772236", "1629593", "1774358", "219710", "326919", "1877641", "1013686", "1761203", "1353645", "205193", "1282054", "1060462", "1555075", "1630174", "982930", "414663", "318321", "1108613", "992963", "813442", "1271234", "480549", "1885570", "1873827", "602618", "1453780", "1131245", "389072", "696154", "1679114", "1603741", "1839815", "530744", "1411792", "705107", "378680", "112964", "1839502", "1710253", "1615588", "1057920", "1738390", "816321", "1053808", "848627", "540693", "1035853", "323331", "1511250", "1332947", "1474791", "1306141", "1860247", "5533", "407510", "1613455", "460194", "988549", "363308", "151356", "1886431", "801944", "496031", "1173891", "62667", "1834670", "659699", "1648960", "220329", "1862781", "343279", "1693351", "1793784", "354089", "229787", "358805", "1594624", "1138258", "1719821", "1814443", "407935", "1758545", "1528125", "1425499", "341444", "728158", "1072297", "1869487", "924643", "1429616", "1654027", "969668", "1662690", "1382063", "38092", "329782", "521495", "965898", "1814272", "1446770", "1195142", "941720", "353954", "929626", "792351", "1536941", "1565065", "1742522", "1150072", "890621", "1008651", "724753", "1448978", "805682", "376564", "1801403", "1830255", "8912", "639833", "1669771", "1616097", "1404327", "1830191", "1439612", "1131520" ] ] } }
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free