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.

diagram-safe-modules

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).

Examples

  1. Safe Modules (opens in a new tab)
  2. Zodiac-compliant modules (opens in a new tab)
  3. Pimlico (opens in a new tab)
‼️

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.

Was this page helpful?