Template & Examples
Smart Wallet React SDK Example
Check out the full example code for integrating Dynamic as wallet provider with the Gelato Smart Wallets React SDK.
Setup Instructions
Generate a API Key
Create a API Key using the Gelato App.
Paste the key into your
.env file. Check out the How-To Guides here.Generate a App ID
Generate the App ID by following the steps in the How-To Guides here, then paste the ID into your
.env file.Installation
Gelato Smart Wallets React SDK
Check out the NPM package for the Gelato Smart Wallets React SDK.
Getting Started
Setting up Smart Wallet Context Provider
To create a API Key, visit the Gelato App and navigate to the
Paymaster & Bundler > API Keys section. Create a new API Key, select the required networks, and copy the generated API Key.
For detailed instructions, click here to learn more about creating a API Key.- Dynamic
- Privy
Setting up Connect Button
You can customize the appearance of your connect button here. This button triggers the wallet connectors widget configured for the UI.
Fetching Smart Wallet Client
Use this client directly to execute transactions with different gas payment methods. Additionally, a logout option is available to disconnect your connected wallet.
Additional Resources
- Check out the complete example React app demonstrating the integration wallet providers here.