How it works
Here’s a breakdown of what’s under the hood:- Modular Providers: Actions is built with a set of core adapters called “Providers”. Providers let you to pick an choose the right services and protocols for your use-case.
- Embedded Wallets: Actions supports popular embedded wallet providers, allowing your users to access DeFi with email authentication flows alone.
- Configure Actions: Extend your embedded wallet with DeFi actions like Lend, Borrow, Swap, and Pay. Set multiple providers for each Action to choose the best markets across DeFi.
- Customize assets & chains: Allow and block assets, markets, chains, and protocols from your application from a single config.
Installation
Install the Actions SDK in your project:Choose a Wallet Provider
Actions works with both frontend and backend wallets depending on your needs:- Frontend
- Backend
Select a wallet provider:
- Privy
- Turnkey
- Dynamic
Set Up PrivySign up for Privy and follow the full Privy installation guide.Configure Wallet ProviderOnce you have set up Privy embedded wallets, pass them to Actions SDK:Configure Smart WalletsOptionally, create signers for smart wallets you control:
Create your ActionsConfig
Follow the Configuring Actions guide to define which protocols, chains, and assets to support.Take Action
Once configured, you can use Actions to perform DeFi operations:Next Steps
- Configure Actions to customize protocols, chains, and assets
- Check out the Actions demo for a complete example application