Skip to content
Alchemy Logo

Modular Account V2

Modular Account V2 is the most robust and feature-rich smart account on the market with top-tier enterprise grade security. Being an ERC-6900 account, it can tap into a rich ecosystem of modules comprising different authentication methods like multisig or webauthn, as well as permissions and more.

With multiple developer-years of work and two comprehensive audits from ChainLight and Quantstamp, Modular Account V2 is the most advanced smart account available:

  • 40%+ reduced gas costs
  • Rich ecosystem of modules from teams like Circle
  • Super simple & clean developer experience

Cost matters, so gas optimization was essential throughout the whole development process. As a result, Modular Account V2 is one of the most optimized smart contracts ever written.

As an example, see the gas comparison for deployment execution costs below:

Runtime gas for account creation% More expensive than MAv2
Alchemy Modular Account v297,764-
ZeroDev Kernel v3180,46584.6%
Safe (with 4337 module)289,207195.8%

Find open-source benchmarks here.

At scale, these optimizations could save tens of thousands of dollars in gas fees -- all without compromising on features or security.

Along with Circle, Trust Wallet, Quantstamp and the Ethereum Foundation, multiple plug & play modules have been developed for use with ERC-6900 accounts. Out of the box, on the validation side, Modular Account V2 supports session keys, Webauthn validation (passkeys/biometrics).

On the permissions front, Modular Account V2 already has first-class support for the following:

  • Allowlists, ensuring a validation can only access what you want it to and nothing else.
  • ERC-20 spend limits, including session keys with spend limits.
  • Native spend limits, which take gas into account.
  • Enforcing expiries, so your session keys can last as short or as long as you need them to.

Note that these features are only possible thanks to the modular nature of ERC-6900, as they're all separate modules. This also means it's possible to combine any number of modules to perfectly fine-tune your permission set.

Want a session key that's only valid for 24 hours, can only spend up to 0.001 ETH (incl. gas) and 100 USDC, all the while it's only able to authenticate calls to one specific address with one specific function? All possible with the modular permission system.

Regardless of how feature-rich Modular Account V2 is, it's all for nothing if it's not straightforward to use. The account standard has over 5,000 words -- it's understandably intimidating. However, the depth of ERC-6900 allows each feature to be secure and ultimately extremely clean for you, the developer.

Leveraging the standard's lack of ambiguity, aa-sdk can safely create high-level zero-cost abstractions, which translate down to RPC calls exactly how you expect them to. No more fighting with your tools.

The SDK is designed from the ground up to get out of your way so you can focus on what matters -- building the best smart wallet experience for your app.

EIP-7702 is an Ethereum upgrade that enables Externally Owned Accounts (EOAs) to use smart wallet features.

Create an EIP-7702 compliant version of a Modular Account V2, learn how to here.

Was this page helpful?