Docs

Dynamic Account Factory

import "@thirdweb-dev/contracts/smart-wallet/dynamic/DynamicAccountFactory.sol";

This contract inherits from the BaseAccountFactory contract.

This factory smart contract is intended to be used to distribute 'DynamicAccounts` 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 DynamicAccountFactory 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/prebuilts/account/dynamic/DynamicAccountFactory.sol";
contract MyDynamicAccountFactory is DynamicAccountFactory {
constructor(
IEntryPoint _entrypoint
)
DynamicAccountFactory(
_entrypoint
)
{}
}

Full Reference