erc7579
Config for a ERC7579 modular smart wallet.
This configuration is in BETA, expect breaking changes.
import { sepolia } from "thirdweb/chains";import { smartWallet, Config } from "thirdweb/wallets/smart"; const modularSmartWallet = smartWallet( Config.erc7579({ chain: sepolia, sponsorGas: true, factoryAddress: "0x...", // the 7579 factory address validatorAddress: "0x...", // the default validator module address }),});
Optional overrides for the smart wallet.
let returnType: Prettify< { factoryAddress?: string; overrides?: { accountAddress?: string; accountSalt?: string; bundlerUrl?: string; createAccount?: ( admin: string, entrypointAddress?: string; execute?: ( transaction: SendTransactionOption, executeBatch?: ( transactions: Array<SendTransactionOption>, getAccountNonce?: ( ) => Promise<bigint>; paymaster?: ( userOp: UserOperationV06 | UserOperationV07, predictAddress?: ( admin: string, ) => Promise<string>; signMessage?: (options: { message: SignableMessage; signTypedData?: (options: { typedData: ox__TypedData.Definition<typedData, primaryType>; tokenPaymaster?: TokenPaymasterConfig; }; sessionKey?: { address: string; permissions: AccountPermissions }; } & ({ gasless: boolean } | { sponsorGas: boolean })>;
The smart wallet options.