Docs

Managed Account Factory

import "@thirdweb-dev/contracts/smart-wallet/managed/ManagedAccountFactory.sol";

This contract inherits from the BaseAccountFactory contract.

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

View on GitHub

Detected Extensions

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

Usage

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

npx thirdweb create contract

Deploy your contract using the deploy cli command:

npx thirdweb create

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

import "@thirdweb-dev/contracts/smart-wallet/managed/ManagedAccountFactory.sol";
contract MyManagedAccountFactory is ManagedAccountFactory {
constructor(
IEntryPoint _entrypoint
)
ManagedAccountFactory(
_entrypoint
)
{}
}

Functions to Override

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