Installation Issues
Package Not Found
Type Errors
Ensure you have TypeScript installed:Configuration Issues
Environment Variables Not Found
- Create
.envfile in project root - Add required variables:
- Load with
dotenv:
Invalid API Credentials
- Verify
GIZA_API_KEYis correct - Check
GIZA_PARTNER_NAMEmatches your registration - Ensure
GIZA_API_URLis correct - Contact Giza support to verify credentials
Smart Account Issues
Invalid Address Format
- Address must start with
0x - Must be 42 characters (0x + 40 hex chars)
- Use lowercase or checksum format
- Verify no extra spaces or characters
Smart Account Not Found
- Create smart account first with
createSmartAccount() - Verify you’re using correct origin wallet
- Check you’re querying correct chain
Activation Issues
No Deposits Found
- Verify user deposited funds
- Check transaction is confirmed on-chain
- Ensure deposited to correct smart account address
- Verify on correct chain
Protocol Not Available
- Use
getProtocols()to check available protocols - Ensure protocol name is spelled correctly
- Verify protocol supports your token
- Check protocol is active on your chain
Activation Timeout
Solution:- Increase timeout in SDK config:
- Check network connectivity
- Verify backend API is reachable
Performance Issues
Slow API Responses
Solution:- Check your network connection
- Try increasing timeout
- Enable retry for better reliability:
- Consider caching responses
Rate Limiting
- Implement exponential backoff
- Cache responses when possible
- Reduce API call frequency
- Contact Giza for higher rate limits
Withdrawal Issues
Withdrawal Takes Too Long
Solution:- Withdrawals can take 5-15 minutes
- Protocols may have withdrawal queues
- Network congestion affects speed
- Use
pollWithdrawalStatus()to track progress - If > 30 minutes, contact support
Withdrawal Stuck in “Deactivating”
Solution:- Check agent status:
getWithdrawalStatus() - Verify transactions on block explorer
- Some protocols have withdrawal delays
- Network congestion can slow processing
- Contact support if stuck > 1 hour
General Debugging
Enable Debug Logging
Check SDK Version
Verify Chain ID
Getting Help
If issues persist:- Check Documentation: Review relevant docs sections
- Search Issues: Check GitHub issues for similar problems
- Enable Retry: Try with
enableRetry: true - Collect Info:
- SDK version
- Node version
- Error messages
- Steps to reproduce
- Contact Support:
- Email: support@gizatech.xyz
- GitHub: Open an issue
- Discord: Join community
Common Error Reference
| Error Code | Meaning | Common Cause |
|---|---|---|
| 400 | Bad Request | Invalid parameters |
| 401 | Unauthorized | Wrong API credentials |
| 404 | Not Found | Resource doesn’t exist |
| 429 | Rate Limited | Too many requests |
| 500 | Server Error | Backend issue, retry |
| 503 | Service Unavailable | Temporary outage |
Best Practices to Avoid Issues
- ✅ Always validate inputs before SDK calls
- ✅ Use try-catch for error handling
- ✅ Implement retry logic for network issues
- ✅ Cache responses appropriately
- ✅ Monitor API health in production
- ✅ Keep SDK updated to latest version
- ✅ Test on testnet before production
- ✅ Handle timeouts gracefully