Docs

SmartWalletOptions

type SmartWalletOptions = {
chain: Chain;
factoryAddress: string;
gasless: boolean;
overrides?: {
accountAddress?: string;
accountSalt?: string;
bundlerUrl?: string;
createAccount?: (
factoryContract: ThirdwebContract,
entrypointAddress?: string;
execute?: (
accountContract: ThirdwebContract,
transaction: SendTransactionOption,
executeBatch?: (
accountContract: ThirdwebContract,
transactions: Array<SendTransactionOption>,
paymaster?: (userOp: UserOperation) => Promise<PaymasterResult>;
predictAddress?: (
factoryContract: ThirdwebContract,
) => Promise<string>;
};
};