/eth-burner

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

Primary LanguageTypeScript

eth-burner

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

Technically, the ETH is not actually burned (permanently erased). It's just collected by miners :)

wanna burn?

# 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.