This simple node script demonstrates how to use thirdweb to deploy and use Smart Wallets - ERC4337 smart contracts - using the Wallet SDK.
The script will:
- generate a personal wallet using LocalWallet
- connect to the corresponding smart wallet
- claim a ERC20 token using the thirdweb SDK
yarn install
The script requires a thirdweb API key.
paste your api key in your .env file:
THIRDWEB_API_KEY={{your_api_key}}
yarn dev
Full documentation at: https://portal.thirdweb.com/wallet/smart-wallet