FunWalletConfig

FunWallet configuration class

Constructor

FunWalletConfig

new FunWalletConfig(eoa, chainId, prefundAmt, salt, paymasterAddr, index)

Parameters

eoa
ethers.Wallet
Required

The EOA responsible for pre-funding the FunWallet account. Also the passthrough EOA for Modules such as EoaAaveWithdrawal.

chainId
int
Required

The chain ID of the blockchain to deploy a FunWallet instance to.

prefundAmt
float
Required

The amount to pre-fund a FunWallet instance with.

salt
string

A unique user identifier. If left blank, will default to the address of the passed in eoa.

paymasterAddr
int

The address of a FunWallet's paymaster, used to support gassless transactions.

index
int

A salt for generating different FunWallet addresses from identical FunWallet instances.