Hi there,
I’m trying to make calls to my bsc rpc archive node.
It used to work properly, but now I’m getting the following error.
Invalid JSON RPC response: "error code: 1020"
Any ideas what I’m doing wrong or how to correct it?
I’m afraid it might be the way I’m making calls, I’ve been trying to make a couple of hundred thousand requests in the past two hours.
I’m basically just making calls to a pancakeSwap contract to retrieve balances at certain blockheights.
await Contract.methods.balanceOf(FOUNDATION_BSC_ADDRESS).call({}, blockheight)
await Contract.methods.totalSupply().call({}, blockheight)