ERC-4337 Smart Accounts
Convert any wallet to a ERC-4337 smart account to your application.
- Let users connect to their smart account using any personal wallet, including in-app wallets for easy onboarding.
- Automatically deploy individual account contracts for your users when they do their first onchain transaction.
- Sponsor gas costs for all transactions via the thirdweb paymaster.
Try out in-app wallets for yourself in the in-app wallet live playground
The easiest way to get started with account abstraction is to use the ConnectButton component. Simply add the accountAbstraction
property with the desired chain and whether to sponsor gas for your users.
With this property, all connected wallets will be automatically converted to smart accounts. The connected wallet will be the admin wallet of the smart account.
You can also make it so only in-app wallets get converted to smart accounts, by configuring the in-app wallet individually. Other external wallets will not be converted to smart accounts with this setup.
You can also use the connection hooks and functions to connect to your smart accounts and build your fully custom UI.
Refer to the Smart Wallet API reference for more advanced configuration of your smart accounts.