/eth-burner-to-eth-sweeper

Command-line tool to continuously burn all ETH in an account.

Primary LanguageTypeScript

eth-burner-to-eth-sweeper

Watches each block for a balance update, and if one is detected, send all that ETH by transferring ETH with the highest possible transaction fee, effectively burning it from the account.

Happy sweeper

# only do this once
yarn install

# burn eth in account corresponding to given prvkey
yarn start \
    -k <prvkey> \
    -u https://eth-mainnet.alchemyapi.io/v2/<key> \
    -b <pubkey> # OPTIONAL address to receive un-burnable leftovers, defaults to 0xfb000000387627910184cc42fc92995913806333

If you want to test this out without burning real ETH, use a testnet provider or a hardhat fork with url http://localhost:8545.

test with binace smart chain testnet https://data-seed-prebsc-1-s1.bnbchain.org:8545

faucet https://testnet.bnbchain.org/faucet-smart