Local Wallet
A local wallet is a low-level wallet that allows you to create wallets within your application or project. It is a non-custodial solution that simplifies the onboarding process and improves the user experience for web3 apps in two ways:
Learn more about Local WalletsIntegrate into your app
import { LocalWallet } from "@thirdweb-dev/wallets";
const wallet = new LocalWallet();
// generate a random walletawait wallet.generate();// connect the wallet to the applicationawait wallet.connect();
// at any point, you can save the wallet to persistent storageawait wallet.save(config);// and load it back upawait wallet.load(config);
// you can also export the wallet out of the applicationconst exportedWallet = await wallet.export(config);// and import it back inawait wallet.import(exportedWallet, config);