SmartWalletOptions

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