Clone this repo.
Run npm install
at project root.
Create a .env
file with the following content:
MAINNET_NODE_URL=https://mainnet.infura.io/v3/<infura key>
PRIV_KEY=<any private key>
Run npm run chain
to start a local test-chain forked off of mainnet state.
Run npm start
to trigger the script.