Example of recovering a smart contract wallet to a new private key. For a detailed explanation check out my blog post
This example uses the BLS Wallet. The smart contract wallet is deployed on Arbitrum Goerli testnet.
npm install
- These scripts run agains the Arbitrum Goerli testnet
- Create wallet zero and wallet one
npm run create-wallets
- Set the recovery hash for wallet zero. We will use the address of wallet one to create this hash
- Note: this action gives wallet one permission to recover wallet zero to a new private key
npm run set-recovery
- Recover wallet zero to a new private key. After successful recovery we will call the recovered wallet, wallet two.
npm run recover-wallet-zero
Pull requests are welcome.