Thank you for reaching out! It sounds like you’re encountering an issue with initializing Web3Auth for Tron integration. Let’s try to sort this out step by step.
Issue Analysis:
The error message WalletInitializationError: Invalid params passed in, privateKeyProvider is required suggests that there might be missing parameters or possibly outdated documentation.
Proposed Solution:
It looks like the key issue might be with the chainNamespace value you’re using, as Tron might have different requirements in the latest SDK versions. Here’s a possible updated snippet which adds the privateKeyProvider:
Thanks for pointing that out, @whiterock. The privateKey provider was missing in the constructor for the Tron connect blockchain. I’ve corrected it and pushed the changes. You can check out the working no modal example here: Tron No Modal Example.