Error Response Format
All API errors follow a consistent JSON format:HTTP Status Codes
Success Codes
Request successful, data returned
Client Error Codes
The request was malformed or contains invalid parametersCommon causes:
- Missing required query parameters
- Invalid ticker_id format
- Malformed request body
The requested resource does not existCommon causes:
- Invalid endpoint path
- Ticker not found
- DAO does not exist
Rate limit exceededDetails:
- Limit: 60 requests per minute per IP
- Reset: Wait until the next minute window
Server Error Codes
An unexpected error occurred on the serverCommon causes:
- RPC connection issues
- Blockchain data unavailable
- Service temporarily down
Upstream service (RPC) is unavailable
API is temporarily unavailable (maintenance or overload)
Common Error Scenarios
Rate Limit Exceeded
When you exceed 60 requests per minute:1
Implement Retry Logic
Wait 60 seconds before retrying
2
Use Exponential Backoff
Gradually increase wait time between retries
3
Cache Responses
Store frequently accessed data locally
Ticker Not Found
When requesting a specific ticker that doesn’t exist:- Verify the ticker_id format:
{BASE_MINT}_{QUOTE_MINT} - Ensure both mint addresses are valid Solana PublicKeys
- Check if the DAO is excluded via
EXCLUDED_DAOS - Verify the DAO has active pools with reserves
RPC Connection Issues
When the Solana RPC is unavailable:Check RPC Status
Verify your RPC provider is operational
Use Fallback RPC
Configure multiple RPC endpoints
Upgrade RPC Tier
Use a premium RPC provider
Retry Request
Implement automatic retry logic
Invalid Configuration
When required environment variables are missing:.env file:
Error Handling Best Practices
Always Handle Errors
Always Handle Errors
Never assume requests will succeed. Wrap all API calls in try-catch blocks.
Implement Timeouts
Implement Timeouts
Set reasonable timeouts to prevent hanging requests.
Use Retry Logic
Use Retry Logic
Implement exponential backoff for transient errors.See code examples above for implementation details.
Cache Responses
Cache Responses
Cache successful responses to reduce API load and improve resilience.
Log Errors
Log Errors
Log all errors for debugging and monitoring.
Monitoring API Health
Use the health check endpoint to monitor API status:Getting Support
If you encounter persistent errors:API Overview
Review API documentation for proper usage
GitHub Issues
Report bugs or request features
Discord Support
Get help from the community
Configuration Guide
Check configuration settings
