during contract deployment to any testnet using the truffle-hdwallet-provider, I am getting the Error: “legacy access request rate exceeded”
my truffle config is set up like so:
I had already done this, just to be sure however I have deleted the project and remade a new project several times and only received the same results I also added the address used to deploy my contract to the addresses white list just in case that was the issue.
I tried “CURL https://ropsten.infura.io/INFURA_PROJECT_ID” but get a 404 error
Curling that URL won’t work that way, needs to be structured as a JSONRPC or WSS request, you are also missing the /v3/ part of the URL, this section of the docs breaks down how to send requests, https://infura.io/docs/gettingStarted/makeRequests
Thank you! Since the configuration in truffle-config.js file is in low version of ropsten, so I changed that
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infuraKey}`),
network_id: 3, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},