Im following this documentation: Wallet Pregeneration | Documentation | Web3Auth
is it possible to use other parameters in the url? more specifically, include chainConfig in it? My end goal is to generate wallets in a node js script using the client’s email, similarly to how it is set in our frontend. Currently the frontend is using modal, email_passwordless
Hi Bruno!
Thanks for reaching out. It looks like you’re exploring capabilities with the SFA Node SDK related to pregenerated wallets and the parameters you can use in the URL.
While it seems you’re following the correct documentation, you might want to verify if the specific parameters allowed, such as chainConfig
, can be included. Generally, it should be possible, but checking the SDK documentation directly or any parameters the SDK currently supports would be a good idea.
Since you’re looking to generate wallets in a Node.js script using the client’s email, it sounds like you have a solid plan! If any further details about your implementation or any specific code snippets you’d like to share could help clarify, feel free to add those.
If you run into any issues during implementation or have questions regarding the SDK specifics, don’t hesitate to ask! Happy coding!
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.
Hey, as you said in the frontend you are using modal, and email_passwordless. Does it mean, you are using Web3Auth PnP Modal SDK for the integration on the frontend? This will help me answer the second question properly of you wanting to achieve your goal.
For the first question, you don’t need to pass the other parameters like ChainConfig, because the the API returns pre-grenerates/ returns the address of the EVM wallet for specific user. Hence ChainConfig is not required.
To access the PrivateKey for the same, you can use the SFA JS SDK, where you can set the EthereumPrivateKeyProvider with the respective ChainConfig you want to use after login.
SFA JS Doc: Web3Auth Single Factor Auth JS SDK | Documentation | Web3Auth
SFA Ethere Chain Doc: Integrate Web3Auth with the Ethereum Blockchain in JavaScript | Web3Auth