Smart Account (Account Factory)
Last updated
Was this helpful?
Last updated
Was this helpful?
The Account Factory contract deploys non-upgradeable, compatible smart wallet accounts for your dApp users. The smart wallet comes with all the basic benefits of account abstraction like no private key handling, gasless transactions, etc, along with the social account locking and recovery features provided by Guardian Smart Wallet Contracts.
Use the AccountFactory address directly on the client side to interact with the deployed factory contract.
Deploys a new smart wallet for your dApp user.
Params:
address _admin
: The public address of the user's EOA/Embedded wallet, powering the smart-wallet account.
bytes calldata _email
: The user's email in encoded form. This email ID should have been verified by the client and will be used in the account locking and recovery operations.
Returns:
address
: The address of the smart wallet account created for the user.
whenNotPaused
is a modifier, which only allows transactions to go through if the smart wallet account is not locked.
Params
address _target
: The address of the contract against which the transaction should execute.
uint256 _value
: The value of native tokens, if any, that should be transferred to the _target
contract.
bytes calldata _calldata
: Any call data to be sent.
whenNotPaused
is a modifier, which only allows transactions to go through if the smart wallet account is not locked.
address[] calldata _target
: The addresses of the contracts against which the transactions should execute.
uint256[] calldata _value
: The values of native tokens, if any, that should be transferred to the _target
contracts. The indexes of _target
and _value
arrays should correspond.
bytes[] calldata _calldata
: Bytes of call data, if any, that need to be sent to the respective _target
contracts. The indexes of _target
and _calldata
arrays should correspond.
Executes a single transaction. Can only be called directly by the owner or the
Executes a batch of transactions. Can only be called directly by the owner or the