Running into a problem attempting to test with hardhat by forking mainnet. I'm following the instructions here: https://hardhat.org/hardhat-network/docs/guides/forking-other-networks. I have a mainnet app configured in my Alchemy account and am using its API key. The problem I'm seeing is, when I run
npx hardhat node --fork https://eth-mainnet.g.alchemy.com/v2/[API_KEY]
(with a valid API key of course) it fails with:
Error HH604: Error running JSON-RPC server: Too Many Requests error received from eth-goerli.g.alchemy.com.
Looking at the app logs in the Alchemy dashboard, sure enough, there are tons of 429 errors associated with calls to eth_getTransactionCount
. This is a brand new app I've created in Alchemy as well. I tried pinning to a specifick block as well but it didn't seem to make a difference.
Why am I getting rate-limited simply trying to start the hardhat node?