Does someone have your keys? Secure your future stakes and yeild on a compromised wallet.
{} means use your own data
git clone https://github.com/ridhwan99/sweeper.git
cd sweeper
pip install --editable .
create .env file
add eth node in .env as INFURA_KEY={eth rpc}
add pls node in .env as pulsechain={pls rpc}
add parent wallet and private key in .env as {parent wallet}={private key}
sweep --help
sweep -wA {parent wallet} -wB {child wallet} -ch {pulsechain or eth}
script moves all eth or pls from parent wallet to child wallet when there is enough to pay gas fee.
As long as the script runs no eth or pls can remain in the parent wallet.
In a scenerio where parent wallet is compromised , running sweeper will always drain the parent wallets eth or pls to your specified child wallet which in turn leaves all your tokens i.e future stakes or yeild to be claimed by parent wallet , safe because there will always be no gas to send them out .