Skip to main content

MetaMask Delegation Toolkit

The MetaMask Delegation Toolkit is a Viem-based collection of tools for integrating embedded smart contract wallets, known as MetaMask smart accounts, into dapps. Developers can create and manage MetaMask smart accounts that delegate specific permissions, such as spending limits or time-based access, to other accounts.

At the core of the toolkit is the Delegation Framework, a set of open-source, audited smart contracts that manage the delegation lifecycle.

Permissions are enforced through caveats, which are rule-based constraints that define the conditions of a delegation. The toolkit includes built-in caveat enforcers for common use cases. It also supports custom caveat enforcers for advanced scenarios.

Why use the toolkit?

The toolkit enables developers to create frictionless new experiences based on granular permission sharing and trust. The toolkit offers a suite of contracts, libraries, and services designed for maximum composability, allowing developers to build and extend their dapps with ease.

The toolkit enables:

  • Instant user onboarding. Provide frictionless onboarding with no browser extension, mobile app, or seed phrase required.

  • New web3 experiences. Unlock new experiences such as peer-to-peer social coordination using incentive trees, or recurring subscription payments that don't require users to connect to the dapp.

  • Uninterrupted user experiences. Keep users immersed in the dapp by embedding the wallet experience and reassigning gas costs to where they make sense.

Where do I start?

Check out the following sections to get started with the MetaMask Delegation Toolkit:

Questions?

If you have questions, email hellogators@consensys.net.