========= NOTICE =========
Request-Rate Exceeded (this message will not be repeated)
The default API keys for each service are provided as a highly-throttled,
community resource for low-traffic projects and early prototyping.
While your application will continue to function, we highly recommended
signing up for your own API keys to improve performance, increase your
request rate/limit and enable other perks, such as metrics and advanced APIs.
For more details: https://docs.ethers.io/api-keys
I receive this notice regularly, even though I am using my personal Infura Project ID. I know for sure it’s using it because I see my requests getting charted in the Infura dashboard.
Since it says using your own API keys will improve performance etc, I want to get this working right.
What could be the reason that I’m getting this notice?
I’m using this code:
require("dotenv").config() const Web3 = require('web3'); const web3 = new Web3( new Web3.providers.WebsocketProvider(process.env.INFURA_URL) );
And I have this line in .env:
INFURA_URL = wss://mainnet.infura.io/ws/v3/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
where xxxxxxxxxxxxxxxxxxxxxxxxxxx is my project ID.