ModuleKit
A development kit for building smart account modules
ModuleKit aims to make it simple for any developer to build a module that works across all ERC-7579 compliant accounts, including Safe, ZeroDev’s Kernel V3, Biconomy’s Nexus, and many more.
ModuleKit has several tools to help during the development lifecycle of a module:
Build
- Standardized interfaces and templates: These ensure that your module is compatible with all the major account implementations and that it's extremely easy to get started.
- Third-party integrations: ModuleKit has a library of integrations and pre-built conditions for execution to make building powerful modules seamless.
Test
- Testing frameworks: These are out-of-the-box testing setups with in-built unit and integration tests. They allow developers to easily test modules against different account implementations and abstract away the complexities of the entire ERC-4337 flow.
- Helper utilities: These utilities improve the developer experience, such as calculating gas consumption (including on L2s) and validating that a module conforms to the ERC-4337 rules.
Deploy
- Deployment script: The ModuleKit comes with a helper contract that allows you to easily deploy a module and register it in the Module Registry.
Supported Accounts
Supported Module Types
Validators
Determine whether a transaction is valid and should be executed
Executors
Create executions on the account with custom logic
Hooks
Enforce conditions or execute logic pre- or post-execution
Fallbacks
Extend the account logic to add more functionality into the account
Useful starting resources
- Blog: Introducing ModuleKit (opens in a new tab)
- Blog: ModuleKit deep dive (opens in a new tab)
- Module examples (opens in a new tab)
- List of open-source modules and resources: awesome-modular-accounts repo (opens in a new tab)
- Learn more about modules
- To use existing modules, check out the Module SDK