But i am getting error with the provider, Currenly in my web3 dashboard my project is setting up with sapphire_devnet Envirorment, then in the code i am trying to get the provider as:
Error: Provider error when using getEvmChainConfig(0x5aff, clientId)
Web3Auth Dashboard: Project set to sapphire_devnet
Resources Provided:
Code snippet for chainConfig initialization
Screenshots of the configuration and error (not visible to me, but available above)
Reference to Web3Auth Quick Start documentation being followed
Next Steps to Troubleshoot
Chain Config Support:
Please note that not all EVM chains or testnets are natively supported by default in the Web3Auth SDK chain config helpers. The Saphire devnet (0x5aff) may not be included out-of-the-box.
Custom Chain Configuration:
If getEvmChainConfig(0x5aff, clientId) doesn’t return a valid config, you will likely need to provide a custom chainConfig object manually.
Here’s an example for adding a custom EVM-compatible chain:
Try defining chainConfig manually as shown above, ensuring you’ve added the correct RPC endpoint for Saphire Devnet.
Let us know:
The exact provider error message (if you’d like specific diagnostics).
If the manual chainConfig resolves your connection issue.
If you continue experiencing issues, please share:
Your Web3Auth initialization code snippet.
The full provider error message/text from the browser console.
Thank you for your patience—let us know if this helps or if you need more detailed guidance!
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