Gnosis Safe Wallet: Complete Setup and DeFi Tutorial
The Gnosis Safe (now known as Safe) is the gold standard for secure asset management in decentralized finance (DeFi). It is a multi-signature (multisig) smart contract wallet that requires multiple owners to approve transactions before execution. This eliminates the single point of failure associated with regular wallets like MetaMask. Whether you are a DAO contributor, a DeFi power user, or a team managing shared funds, this tutorial will walk you through the complete setup and core DeFi interactions.
What you will learn:
1. Creating your first Safe
2. Adding owners and setting the threshold
3. Sending native tokens and ERC-20s
4. Interacting with DeFi protocols (e.g., Uniswap, Aave)
5. Using the Safe Transaction Builder for complex batched operations
Let’s begin.
Step 1: Prerequisites and Connecting to Safe
Before you create a Safe, you need:
– A Web3 wallet (MetaMask, WalletConnect, or Ledger).
– A small amount of ETH on the network you plan to use (e.g., Ethereum Mainnet, Polygon, Arbitrum, or Gnosis Chain).
– Access to the Safe Web App: https://app.safe.global
Action:
1. Open the Safe App and click “Connect Wallet”.
2. Select your wallet provider (MetaMask is the most common).
3. Choose the network (e.g., Ethereum Mainnet). For this tutorial, we will use Ethereum Sepolia testnet for safety. In the app, switch the network in the top-left corner.
4. Once connected, you will see the dashboard.
Pro Tip: Always start on a testnet to practice. You can get free Sepolia ETH from faucets like Alchemy or Infura.
Step 2: Creating Your Safe
A Safe is a smart contract. You deploy it once, and it exists on-chain.
- On the dashboard, click “Create Safe”.
- Name your Safe – This is a local label only, not on-chain. Example: “Team Treasury” or “Personal Vault”.
- Add Owners – Enter the wallet addresses of the signers. You can add yourself as the first owner. Each owner can be any wallet (MetaMask, Ledger, etc.). For a test, use two of your own wallets (e.g., MetaMask account 1 and account 2).
- Set the Threshold – This is the number of owners required to confirm a transaction. For a 2/3 Safe, set threshold to 2. For a personal vault, a 1/1 Safe is fine, but the real power is multisig.
- Review and Deploy – Confirm the owners and threshold. You will see a gas fee estimate. Click “Create” and sign the transaction in your wallet.
- Wait for the transaction to be mined. Once done, you will see your Safe address. Fund it with some ETH (e.g., from a faucet or exchange) before proceeding.
Key Takeaway: The threshold must be ≤ the number of owners. A 2/3 setup means any two owners must sign.
Step 3: Adding or Removing Owners (Post-Creation)
You can change owners and threshold after creation via the “Settings” tab.
- Go to Settings > Owners.
- Click “Add owner” or “Replace owner”.
- Enter the new owner’s address.
- If you change the number of owners, you may also need to adjust the threshold.
- Click “Submit” – This creates a transaction that must be signed by the current threshold number of owners.
- Other owners must log into the Safe App and confirm the change using their wallet.
This ensures that no single person can alter the Safe’s security parameters.
Step 4: Sending Transactions (Native and ERC-20)
Sending ETH or tokens from a Safe is a two-step process: propose and confirm.
Sending ETH:
1. Go to the “Assets” tab. Click “Send” next to ETH.
2. Enter the recipient address and amount.
3. Review and click “Submit” – You will be prompted to sign the transaction with your wallet. This proposes the transaction.
4. Now, another owner must log in, go to the “Transactions” tab, find the pending transaction, and click “Confirm”.
5. Once the threshold is reached (e.g., 2 confirmations), the “Execute” button becomes active. Click it and pay the gas fee (from the Safe itself). The transaction is now on-chain.
Sending ERC-20 Tokens (e.g., USDC):
– The process is identical. In the Assets tab, select the token, click Send, and follow the same propose/confirm/execute flow.
Important: The Safe pays gas from its own balance. Ensure the Safe always has enough ETH for gas.
Step 5: DeFi Interaction (Uniswap Example)
Interacting with DeFi protocols like Uniswap or Aave requires using the “Apps” tab. Safe integrates with many dApps via its built-in browser.
Example: Swapping ETH for DAI on Uniswap
- Ensure your Safe has ETH and you have at least one other owner available.
- Go to the “Apps” tab. Search for Uniswap and click it.
- Connect your Safe to Uniswap (the app will detect it automatically).
- Select the swap pair (e.g., ETH → DAI). Enter the amount.
- Click “Swap” – Uniswap will generate a transaction. Instead of executing instantly, Safe will show a “Submit” button.
- Click Submit – This creates a proposed transaction in your Safe queue.
- Now, another owner must confirm this transaction (just like Step 4).
- Once confirmed, execute it. The swap happens from your Safe, and the DAI arrives in your Safe’s balance.
Why this matters: A single compromised private key cannot drain funds. Two or more owners must agree on the DeFi action.
Step 6: Using the Safe Transaction Builder (Advanced)
The Transaction Builder is a powerful tool that lets you batch multiple actions into a single transaction. For example, you can swap tokens, then stake them, all in one atomic operation.
How to use it:
1. Go to “Apps” and select “Transaction Builder”.
2. Step A – Add Transactions:
– Click “Add transaction”. Enter the target contract address (e.g., a Uniswap router) and the ABI or use the built-in interface.
– Example: First, approve the Uniswap router to spend your tokens. Then, call the swapExactTokensForTokens function.
– You can add multiple transactions. Each one will be executed in sequence.
3. Step B – Review and Batch:
– After adding all actions, click “Create batch”.
– You will see a summary of all calls. Click “Send batch”.
– This creates a single Safe transaction that contains all the batched calls.
4. Step C – Multi-sign:
– Other owners must confirm this batched transaction just like any other.
– Once threshold is reached, execute it.
Use Case Example:
– Approve USDC → then supply USDC to Aave → then borrow ETH → all in one batched transaction. This saves gas and ensures atomicity (all succeed or all fail).
Pro Tip: The Transaction Builder is essential for advanced DeFi strategies and DAO treasury management.
Step 7: Monitoring and Managing Your Safe
Once your Safe is live, you can:
– View all assets under the Assets tab.
– Track pending and historical transactions under Transactions.
– Set spending limits (for low-value recurring payments) via Settings > Spending Limits.
– Use the Safe mobile app (iOS/Android) to approve transactions on the go.
Remember that every transaction requires the threshold number of signatures. This includes simple token transfers, DeFi interactions, and owner changes.
Step 8: Security Best Practices
- Diversify Owner Wallets: Use different wallet types (e.g., MetaMask + Ledger + a mobile wallet) to avoid a single point of failure.
- Use a High Threshold for High-Value Funds: A 3/5 or 4/6 threshold provides strong security.
- Test on Testnet First: Always practice on Sepolia or Goerli before moving real funds.
- Never Share Seed Phrases: Each owner must protect their own private key.
- Revoke Approvals: Regularly check and revoke token approvals to dApps you no longer use (use tools like Etherscan’s Token Approval checker).
Conclusion
You have now set up a fully functional Gnosis Safe, added owners, configured a multisig threshold, sent transactions, interacted with DeFi protocols, and used the Transaction Builder for complex operations. The Safe is not just a wallet—it is a programmable governance tool that secures billions of dollars in DeFi. By following this tutorial, you have taken a major step toward professional-grade asset management.
Next Steps:
– Try depositing your Safe into a yield aggregator like Yearn Finance.
– Create a Safe for your project’s DAO treasury.
– Explore the Safe + Zodiac module for advanced governance (e.g., time-locks, roles).
Now go build securely.
Frequently Asked Questions
Q: What is the difference between Gnosis Safe and a regular wallet like MetaMask?
A: A regular wallet like MetaMask uses a single private key, making it vulnerable if that key is compromised. Gnosis Safe is a multisig smart contract wallet that requires multiple owners to approve transactions, eliminating the single point of failure. It also offers advanced features like batched transactions and spending limits.
Q: How much does it cost to create a Gnosis Safe?
A: The cost to deploy a Safe varies by network and gas prices. On Ethereum Mainnet, it typically costs between $50 and $150 in ETH for deployment. On Layer 2 networks like Polygon or Arbitrum, the cost is significantly lower, often under $1. You can also use testnets like Sepolia for free practice.
Q: Can I use Gnosis Safe with a hardware wallet like Ledger?
A: Yes, Gnosis Safe fully supports hardware wallets like Ledger and Trezor. You can add a Ledger wallet as one of the owners, providing an extra layer of security. When signing transactions, you will need to connect and approve via the hardware device.
Q: How do I recover my Gnosis Safe if I lose access to one owner wallet?
A: If you lose access to one owner but still have enough remaining owners to meet the threshold, you can add a new owner and remove the lost one via the Settings tab. If you lose too many owners to meet the threshold, recovery is not possible—this is why diversifying owner wallets and backup methods is critical.
Q: What networks does Gnosis Safe support?
A: Gnosis Safe supports over 15 networks including Ethereum Mainnet, Polygon, Arbitrum, Optimism, BNB Chain, Avalanche, Gnosis Chain, and many more. You can switch networks in the top-left corner of the Safe Web App. Each network requires its own Safe deployment.
Q: Can I use Gnosis Safe for a DAO treasury?
A: Yes, Gnosis Safe is the most widely used wallet for DAO treasuries. It allows multiple team members to sign off on transactions, set spending limits, and use the Transaction Builder for complex governance actions. Many DAOs also integrate Safe with tools like Snapshot for voting.
Q: What is the Safe Transaction Builder and why should I use it?
A: The Transaction Builder lets you batch multiple blockchain actions into a single Safe transaction. For example, you can approve a token, swap it on Uniswap, and then stake the result—all in one atomic operation. This saves gas fees and ensures that either all actions succeed or none do.
Q: How do I add or remove owners from my Safe after creation?
A: Go to Settings > Owners in the Safe Web App. Click “Add owner” or “Replace owner,” enter the new address, and submit the change as a transaction. The current threshold number of owners must then confirm the change. This ensures no single person can alter the Safe’s security settings.