require("@nomiclabs/hardhat-ethers");
require ("dotenv").config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.10",
networks:{
mainnet: {
url: `https://eth-mainnet.g.alchemy.com/v2/APIKEY`,
accounts: [process.env.PRIVATE_KEY],
}
}
};
i want to know what is really wrong cos infura rpc url also return this error
https://eth-mainnet.g.alchemy.com/v2/APIKEY
only or are you renamingAPIKEY
?