Skip to content

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.

Notifications You must be signed in to change notification settings

PoolPirate/Fast-ERC20-Redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published