A very crude implementation of a sweeper bot on for testing purposes Constantly attempt to withdraw all ETH in provided wallet.
Clone this repo with
git clone https://github.com/mteam88/eth-sweeper-bot
cd eth-sweeper-bot
You must have go
installed.
Run
go run main.go
in eth-sweeper-bot
directory.
IMPORTANT: Complete the configuration steps below before running.
Set the Environment variables below manually or place them in a .envrc
or .env
file.
NODE_ENDPOINT = "YOUR NODE PROVIDER HERE" // Usually a local node (ganache, geth) or a hosted node (infura, alchemy.io)
TARGET_PRIVATE_KEY = "YOUR TARGET PRIVATE KEY HERE" // Target wallet to sweep
HQ_ADDRESS = "YOUR PERSONAL ADDRESS HERE" // This is where the ETH will be sent.