This script rescues WDEGEN airdropped to Coinbase Smart Wallets on Degen chain.
It does the following:
- Deploys your Coinbase Smart Wallet to Degen Chain
- Replays the operation that adds the recovery account to your Coinbase Smart Wallet
- Sends your WDEGEN to the destination address e.g. a Metamask wallet
- Must have added a recovery account to your Coinbase Smart Wallet. Do that here: https://keys.coinbase.com/settings
- Node.js installed on your machine. This script was tested with Node.js v20.17.0.
npx rescue-degen-airdrop@latest --wallet <wallet-address> --destination <destination-address>
Options:
--help Show help [boolean]
--version Show version number [boolean]
--wallet Coinbase Smart Wallet address [string] [required]
--destination Destination address [string] [required]
You will be prompted for your 13 word recovery phrase.
pnpm install
pnpm run tsx src/index.ts
Run a fork of DEGEN chain:
anvil --fork-url "https://rpc.degen.tips"
RPC_URL_666666666="http://127.0.0.1:8545" pnpm run tsx src/index.ts