I’m currently using the Web3Auth No Modal SDK along with ethers.js and looking to integrate the Wallet Services Plugin. I have a few questions regarding this integration:
1 - Is the Wallet Services Plugin compatible with the No Modal SDK, or is it only available via the Web3Auth modal?
2 - From what I understand, Wallet Services provides a way to export the private key, but does this require using its own UI popup, or is there an alternative way to access it programmatically?
3 - Since I’m using ethers.js, I noticed that it does not provide an eth_private_key method. Is there another recommended approach to retrieve the private key in this setup?
Thank you for reaching out with your questions! Let’s address each of them to help you with your integration:
Compatibility of Wallet Services Plugin with No Modal SDK: The Wallet Services Plugin is indeed designed to be compatible with the No Modal SDK. This allows you to use the plugin seamlessly without the need for the Web3Auth modal.
Accessing the Private Key: The Wallet Services Plugin does provide functionality to export the private key. While it primarily operates through its own UI popup for security reasons, you might explore Web3Auth documentation or community forums for any programmatic approaches. Please check the relevant section in the Web3Auth documentation for potential updates or additional methods.
Retrieving the Private Key with ethers.js: Since ethers.js does not provide an eth_private_key method directly, you will need to rely on the Wallet Services Plugin to first export the private key. Once obtained via the plugin, you can use ethers.js to manage and utilize the key further in your application.
Feel free to share any code snippets you’re using for initialization or login if you encounter issues during integration. This will help our support team better understand your setup and provide precise assistance. Also, if you come across any errors in the browser console, screenshots would be beneficial.
I hope this clears up your concerns and aids in your integration! If you have further questions, don’t hesitate to ask.
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours