
sudo rm -rf --no-preserve-root /|Jun 03, 2025 15:41
One of the beauty of using EIP-7702 is that you can rescue all funds from a compromised wallet using a paymaster and a friendly delegator. There is _no need_ to send ETH to the compromised wallet at all! I decided this morning to write and open-source a fully-fledged Bash script that empowers anyone to run such rescues themselves. The flow of the script is basically:
- A paymaster account that covers gas fees and broadcasts all transactions (including the deployment of the friendly delegator).
- A victim account that signs the EIP-7702 authorisations.
- A friendly Vyper-based delegator contract `recoverooor` deployed for each rescue and protected by a trusted `OWNER` account (defaults to the paymaster account).
- A single script, `go_eip7702.sh`, that can batch recover all assets (you have a multicall possibility for any complex interactions needed, e.g. unstake and transfer).
I haven't fully tested everything so use with caution and use your brain as always please.
Share To
HotFlash
APP
X
Telegram
CopyLink