You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet it fails with: {'error': {'code': -32600, 'message': 'start is before oldest ledger'}, even though when I ask for the earliest node block, I get: 51379561 which is much less then 52916217:
import requests
HORIZON_URL = "https://docs-demo.stellar-mainnet.quiknode.pro/" # Use the appropriate URL for your network (testnet/mainnet)
def get_earliest_ledger():
params = {
"order": "asc",
"limit": 1
}
response = requests.get(f"{HORIZON_URL}/ledgers", params=params)
if response.status_code == 200:
return response.json()['_embedded']['records'][0]
else:
response.raise_for_status()
if __name__ == "__main__":
earliest_ledger = get_earliest_ledger()
print("Earliest accessible ledger entry:")
print(earliest_ledger)
What version are you using?
I am using Python on QuickNode REST RPC:
What did you do?
I want to query
getEvent
REST RPC method. I tried to call on two RPC endpoints:Yet it fails with:
{'error': {'code': -32600, 'message': 'start is before oldest ledger'},
even though when I ask for the earliest node block, I get:51379561
which is much less then52916217
:prints to me into on 51379561
What did you expect to see?
Events starting from the first block are known to the node.
What did you see instead?
Error
{'error': {'code': -32600, 'message': 'start is before oldest ledger'},
Question
Is there some way to get a real minimal queriable node block?
The text was updated successfully, but these errors were encountered: