Docs

AccountFactory

import "@thirdweb-dev/contracts/smart-wallet/non-upgradeable/AccountFactory.sol";

This contract inherits from the BaseAccountFactory contract.

This factory smart contract is intended to be used to distribute 'Accounts` programmatically.

View on GitHub

Detected Extensions

Once deployed, you can use the features made available by these extensions on the SDK and dashboard:

Click on each feature to learn more about what functions are available.

Usage

Use the CLI create command to create a AccountFactory smart contract:

npx thirdweb create contract

Deploy your contract using the deploy cli command:

npx thirdweb deploy

Or import the contract into your existing project and inherit from it.

import "@thirdweb-dev/contracts/smart-wallet/non-upgradable/AccountFactory.sol";

contract MyAccountFactory is AccountFactory {
	  constructor(
        IEntryPoint _entrypoint
    )
        AccountFactory(
            _entrypoint
        )
    {}
}

Full Reference

The following functions have been implemented on this contract & are available to be overridden to add custom logic: