Troubleshooting
Widget Not Rendering
Problem: Widget doesn't appear or styles are broken.
Solution:
Verify you've imported the styles:
import '@ordanetwork/sdk/react/styles.css';Check browser console for errors.
Ensure OrdaProvider wraps your component.
Verify all peer dependencies are installed.
Authentication Errors
Problem: "Failed to get JWT token" or 401 errors.
Solution:
Check your .env.local has correct credentials:
ORDA_CLIENT_ID=prj_...
ORDA_CLIENT_SECRET=sec_...Verify your JWT endpoint is working:
curl -X POST http://localhost:3000/api/auth/jwtCheck server logs for error details.
Ensure getToken() returns correct format:
{ jwt: string, expiresAt: number }Wallet Connection Issues
Problem: Wallets won't connect or WalletConnect modal doesn't open.
Solution:
Verify NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID is set.
Check projectId is valid (32+ characters).
Ensure your domain is allowlisted in WalletConnect Cloud.
Try clearing browser cache and reconnecting.
Check browser console for WalletConnect errors.
Build Errors
Problem: TypeScript errors or build failures.
Solution:
Ensure peer dependencies match version requirements:
Clear node_modules and reinstall:
Check TypeScript version (5.0+):
Style Conflicts
Problem: Widget styles conflict with app styles.
Solution:
Widget styles are scoped to .orda-widget.
Import widget styles AFTER your global styles:
Use CSS modules or scoped styles for your app.
Token Prices Not Loading
Problem: Token prices show as $0 or fail to load.
Solution:
Check network connectivity.
Verify JWT has quotes:read permission.
Check browser console for API errors.
Ensure token addresses are correct.
Try refreshing the page.
Debug Mode
Enable debug mode to see detailed logs:
Debug logs will show:
SDK initialization
Token refresh timing
API request details
Error stack traces
Additional Resources
Documentation
orda Developer Portal: https://app.orda.network
API Documentation: https://docs.orda.network
orda SDK: https://www.npmjs.com/package/@ordanetwork/sdk
Last updated