What are DeFi Smart Accounts?
DeFi Smart Accounts (DSAs) are smart contract wallets that act as a unified proxy to interact with multiple DeFi protocols. Each DSA is a uniquely numbered smart account with its own Ethereum address that enables users to execute complex, multi-step transactions across protocols in a single transaction.Every user can create multiple DSA accounts for different use cases, all controlled by their primary Ethereum address.
Key Features
Composability
DSAs enable seamless composability across DeFi protocols. You can combine actions from different protocols (Aave, Compound, Uniswap, etc.) into a single transaction, creating complex financial strategies that would otherwise require multiple transactions and higher gas costs.Authority Management
Each DSA supports multiple authorities - addresses that are authorized to execute transactions on behalf of the account. This enables:- Delegation of control to trusted addresses
- Multi-signature functionality
- Automated strategy execution through smart contracts
Gas Efficiency
By batching multiple protocol interactions into a single transaction, DSAs significantly reduce gas costs compared to executing each action separately.Multi-Chain Support
DSAs are deployed across multiple chains:Ethereum
Chain ID: 1
Polygon
Chain ID: 137
Arbitrum
Chain ID: 42161
Avalanche
Chain ID: 43114
Optimism
Chain ID: 10
Base
Chain ID: 8453
How DSAs Work
Account Structure
Each DSA has three key properties:Version Support
DSA supports two versions:- Version 1: Legacy DSA accounts with basic functionality
- Version 2: Current standard with enhanced features and optimizations (recommended)
When creating a new DSA, version 2 is used by default unless specified otherwise.
Creating a DSA
To create a new DSA account, use thebuild() method:
Managing DSAs
Fetching Accounts
Retrieve all DSAs owned by an address:Setting Active Instance
Before casting spells, set which DSA to use:Checking Account Details
Get detailed information about a specific DSA:Authority System
DSAs implement a flexible authority system for access control:Adding Authorities
You can authorize additional addresses to control your DSA:Authority Use Cases
Delegation
Delegation
Delegate DSA control to a trusted address for automated operations or strategy execution.
Multi-Sig
Multi-Sig
Add multiple authorities to implement multi-signature functionality for enhanced security.
Smart Contract Automation
Smart Contract Automation
Authorize smart contracts to execute predefined strategies automatically based on market conditions.
Security Considerations
Best Practices
- Verify Authority Addresses: Always double-check addresses before adding them as authorities
- Use Hardware Wallets: Protect your primary authority address with a hardware wallet
- Regular Audits: Periodically review authorized addresses using
getAuthById() - Separate Concerns: Create multiple DSAs for different strategies to isolate risk
DSA Lifecycle
Advanced Features
Flash Loans
DSAs can leverage flash loans from Instapools for capital-efficient strategies:Cross-Chain Operations
DSAs on different chains can be used for cross-chain strategies using bridge connectors:Next Steps
Spells
Learn how to compose transactions with spells
Connectors
Explore available protocol connectors