I’m trying to swap some tokens. However when trying it out on a locally forked mainnet I get following Error:
creation of Contract_Name errored: Returned error: Returned error: project ID does not have access to archive state.
However I shouldn’t need to access blocks previous to 128 blocks.
Any help is much appreciated
Hi @GreyShadow94, and welcome to the Infura community! Certain methods require archive data and your account needs that add-on in order to access it. Documentation for the requirement can be found here .
If you’re getting this error message while using a method that isn’t listed at that link, please send over a snippet of the code you’re running to get that error message.