Skip to content

Instantly share code, notes, and snippets.

@polluterofminds
Last active August 30, 2021 13:59
Show Gist options
  • Save polluterofminds/e0e4cec98f95ed70c48280444c59e64c to your computer and use it in GitHub Desktop.
Save polluterofminds/e0e4cec98f95ed70c48280444c59e64c to your computer and use it in GitHub Desktop.
Hardhat Config
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