Actions SDK is still under construction and not ready for production use! This
guide is meant for early testing purposes only.
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
Install and setup Privy.Configure Wallet ProviderGive your embedded wallets the ability to take Action: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
- Continue reading the Actions SDK documentation.
- Check out the Actions demo for a complete example application
- Join the Optimism Discord for support and updates