Last active
August 30, 2021 13:59
-
-
Save polluterofminds/e0e4cec98f95ed70c48280444c59e64c to your computer and use it in GitHub Desktop.
Hardhat Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require("@nomiclabs/hardhat-waffle"); | |
// This is a sample Hardhat task. To learn how to create your own go to | |
// https://hardhat.org/guides/create-task.html | |
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => { | |
const accounts = await hre.ethers.getSigners(); | |
for (const account of accounts) { | |
console.log(account.address); | |
} | |
}); | |
const ALCHEMY_API_KEY = "KEY"; | |
const RINKEBY_PRIVATE_KEY = "YOUR RINKEBY PRIVATE KEY"; | |
module.exports = { | |
solidity: "0.8.4", | |
networks: { | |
rinkeby: { | |
url: `https://eth-rinkeby.alchemyapi.io/v2/${ALCHEMY_API_KEY}`, | |
accounts: [`0x${RINKEBY_PRIVATE_KEY}`], | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment