require("@nomicfoundation/hardhat-toolbox"); // The next line is part of the sample project, you don't need it in your // project. It imports a Hardhat task definition, that can be used for // testing the frontend. require("./tasks/faucet"); //转到https://www.alchemyapi.io,注册,创建 //在仪表板中安装一个新的应用程序,并用其键替换“KEY” const ALCHEMY_API_KEY = "1DMM5KirKK3HriaDHRxrTFjYNKko9Kwn"; //用Goerli帐户私钥替换此私钥 //要从Metamask导出私钥,请打开Metamask并 //转到帐户详细信息>导出私钥 //小心:切勿将真实以太币放入测试账户 const GOERLI_PRIVATE_KEY = "511348790f6c17d7fbafdb7108307698542acef8ca01e7d263d8367cc412015a"; /** @type import('hardhat/config').HardhatUserConfig */ module.exports = { solidity: "0.8.9", networks: { goerli: { url: `https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_API_KEY}`, accounts: [GOERLI_PRIVATE_KEY] } } };