Advanced
Safe Modules

Safe Modules

Safe Modules add custom features to Safe contracts. They are smart contracts that add functionality to Safe while separating module logic from Safe's core contracts. A basic Safe doesn't require any modules. Adding and removing a module requires confirmation from the configured threshold number of owners. Events are emitted whenever a module is added or removed and a module transaction succeeds or fails.

Safe Modules can include daily spending allowances, amounts that can be spent without the approval of other owners, recurring transactions modules, and standing orders performed on a recurring date. For example, paying your rent or social recovery modules may allow you to recover a Safe if you lose access to owner accounts.

‼️

Safe Modules can be a security risk since they can execute arbitrary transactions. Only add trusted and audited modules to a Safe. A malicious module can take over a Safe.

diagram-safe-modules

Examples

Official Safe Modules

These are audited Safe Modules built and maintained by the Safe team. The safe-modules (opens in a new tab) repository contains the collection of the Official Safe Modules. Currently, there are three official Safe Modules:

  • 4337 module
  • Allowance module
  • Passkeys module

Community Safe Modules

  1. Zodiac-compliant modules (opens in a new tab)

How to create a Safe Module

A great way to understand how Safe Modules work is by creating one. An excellent place to start is Safe Modding 101: Create your own Safe Module (opens in a new tab).

Was this page helpful?