Smart Wallet configuration options
The address of the Smart Wallet Factory contract. Must be of type string
.
Whether to turn on or off gasless transactions.
If set to true
, all gas fees will be paid by a paymaster.
If set to false
, all gas fees will be paid by the Smart Wallet itself (needs to be funded).
Must be a boolean
.
Customize how the Smart Wallet Factory contract is interacted with. If not provided, the default functions will be used.
Must be a object
. The object can contain the following properties:
createAccount
- a function that returns the transaction object to create a new Smart Wallet.
getAccountAddress
- a function that returns the address of the Smart Wallet contract given the owner address.
abi
- optional ABI. If not provided, the ABI will be auto-resolved.
Customize how the Smart Wallet Account contract is interacted with. If not provided, the default functions will be used.
Must be a object
. The object can contain the following properties:
execute
- a function that returns the transaction object to execute an arbitrary transaction.
getNonce
- a function that returns the current nonce of the account.
abi
- optional ABI. If not provided, the ABI will be auto-resolved.
Your own bundler URL to send user operations to. Uses thirdweb's bundler by default.
Must be a string
.
Your own paymaster URL to send user operations to for gasless transactions. Uses thirdweb's paymaster by default.
Must be a string
.
The entrypoint contract address. Uses v0.6 by default.
Must be a string
.
Whether to deploy the smart wallet when the user signs a message. Defaults to true.
Must be a boolean
.