I have a nodejs 'server' running that listens for events on the blockchain. Currently I have this line in my code:
var provider = new Web3.providers.HttpProvider("http://localhost:8545");
But I'm fed up paying $40 every month for my node. I want to switch to infura. I signed up, added my project, got project ID. Then changed this line of code to:
var provider = new Web3.providers.HttpProvider("https://mainnet.infura.io/v3/PROJECTID");
And I get a whole load of errors as per https://i.stack.imgur.com/UKkNw.png. What's going on? What am I doing wrong?
Error: The method eth_newFilter does not exist/is not available