PoolPirate/Fast-ERC20-Redirect

A utility script that monitors a wallet for token transfers and sends them to a different wallet as soon as they are received. Useful when your wallet got hacked.

★ 1Forks 0JavaScriptGitHub ↗Compare

README

Fast-Erc20-Redirect

Ever had you private key exposed? Accidently gave someone a permit which you cannot revoke? This is what you need!

How does it work?

This will use a Websocket RPC provider to monitor your address. Whenever an ERC-20 is received it will automatically send it to a another specified address.

Configure

Open the fast_erc20_redirect.js file and fill in values in line 4-7.

privateKey: The hex private key for you wallet (Not the mnemonic seed!) monitoredAddress: The address matching your private key newWallet: The target wallet that all tokens are sent to providerURL: A Websocket RPC provider URL (Most free WSS providers will not work, one option is the QuickNode free tier)

How to run

  1. You should read a script before putting your private key into it
  2. Install node & npm
  3. npm i
  4. node fast_erc20_redirect.js
  5. Keep running 24/7

Contributors

PoolPirate

Issues