an automated minter for the chi gas token on the cheapeth blockchain.
npm install
npm run compile
first you will need to create a file named .chi
in your home directory, this file should contain a private key to an account loaded with an amount of cheapeth.
npm run mint
configure amount of chi minted per block inside scripts/minter.js
. the maximum amount of chi that can be currently minted is 219, this takes up almost 100% of the cheapeth block gas limit.
var chiPerBlock = 219;
configure the gas price used inside hardhat.config.js
, the current default is 1 gwei (1000000000 wei).
cheapeth: {
url: "https://rpc.cheapeth.org/rpc",
accounts: [chiKey],
gasPrice: 1000000000
}