Understanding Backend Wallets in thirdweb Engine
Backend wallets play a crucial role in thirdweb Engine, especially when it comes to gas sponsorships or performing transactions on behalf of users. This guide will walk you through the different types of backend wallets, how to manage them, and how they interact with your Engine instance.
To see a video version of this guide, check out the video below:
What Are Backend Wallets?
Backend wallets are essential for any operations where you need to manage transactions for your users, such as sponsoring gas fees. These wallets allow you to perform transactions without requiring users to interact directly with the blockchain.
Types of Backend Wallets
thirdweb Engine supports three main types of backend wallets:
Local Backend Wallets:
- Advantages: Easily set up without needing additional infrastructure or configuration.
- Limitations: Private keys are not exportable and cannot be recovered if deleted from your Engine instance.
AWS Managed Wallets:
- Managed by Amazon Web Services, these wallets allow for private key export and recovery, offering more flexibility in case of issues.
Google Cloud Managed Wallets:
- Similar to AWS wallets, these are managed by Google Cloud Services and also allow for private key export and recovery.
Creating and Managing Backend Wallets
You can either create a new backend wallet within the Engine dashboard or import an existing wallet by providing its private key. Once your backend wallet is set up, you can start using it in your Engine instance.
Here’s what you can do with your backend wallets:
- Copy Wallet Address: Use the wallet address in your fetch requests to interact with the blockchain.
- Fund Wallets: Essential for gas sponsorships or handling transactions on behalf of users.
- Manage Wallets: Click the three dots next to any wallet to:
- Edit the wallet’s label.
- Receive funds into the wallet.
- Send funds out of the wallet.
These management tools make it easy to handle all your backend wallet needs directly from the Engine dashboard.
Conclusion
Backend wallets are a powerful feature in thirdweb Engine, offering flexibility and control over how you manage transactions and gas fees for your users. Whether you choose a local wallet or a managed solution through AWS or Google Cloud, understanding how to set up and manage these wallets is key to making the most of your thirdweb Engine instance.
If you have any questions or need further assistance, don’t hesitate to reach out to the thirdweb support team. Until next time, happy building!