I am trying to run the ‘get committee assignments’ API for ETH 2.0 and it doesn’t work when the epoch provided is anything less than or equal to the last confirmed epoch. The response code received is 410. Below is the Python program I am running:
import requests
import json
url = “https://altona.infura.io/beacon/committees”
querystring = {“epoch”:“1449”}
auth = (‘project id’,‘pswd’)
response = requests.request(“GET”, url, auth=auth, params=querystring)
print(‘response’,response.status_code)
if response.status_code == 200:
js = response.json()
print(js)
Similarly the ‘get beacon state’ API (https://altona.infura.io/beacon/state) is not working for any slots belonging to epoch which is less than the last confirmed epoch
The ‘get validators matching the specified query’ API also doesn’t work for epochs less than the latest confirmed epoch… Also if we give a future epoch it should throw an error but instead it shows the data from the latest epoch