Troubleshooting
This guide provides solutions to common issues you may encounter while using the BeL2 SDK.
Common Issues
1. Connection Issues
If you're having trouble connecting to the Elastos Smart Chain:
- Ensure you're using the correct RPC URL:
https://api2.elastos.net/esc
- Check your internet connection
- Verify that the Elastos Smart Chain network is operational
2. Transaction Submission Failures
If your verification request transaction fails to submit:
- Make sure you have sufficient ESC (Elastos Smart Chain native token) to cover gas fees
- Check that you're using the correct chain ID (20 for Elastos Smart Chain)
- Ensure your signer has the necessary permissions
3. Verification Status Not Updating
If the verification status seems stuck:
- Ensure you're correctly subscribing to the
status$
observable - Check that your verification request was successfully submitted
- Be patient, as the verification process may take some time
Error Messages
Here are some common error messages you might encounter and their potential solutions:
- "Invalid chain ID": Make sure you're using the correct chain ID (20 for Elastos Smart Chain)
- "Transaction underpriced": Increase the gas price for your transaction
- "Insufficient funds": Ensure your account has enough ESC to cover gas fees
Getting Help
If you're experiencing issues not covered in this guide:
- Check the BeL2 documentation for any updates or additional information
- Join the BeL2 Discord community for community support
- Contact the BeL2 support team at [email protected]
Remember to provide as much detail as possible about your issue, including any error messages, when seeking help.