Authentication
Helius API uses API keys to authenticate requests. Every API request must include your API key to verify your identity and permissions.Your API key is sensitive information that grants access to your Helius account. Never expose it in client-side code, public repositories, or browser-accessible areas.
Getting Started
1. Create Your API Key
1
Sign up or log in
Create an account on the Helius Dashboard or log in to your existing account.
2
Navigate to API Keys
Go to the API Keys section in your dashboard sidebar.
3
Generate a new key
Click Create New API Key and provide a descriptive name for your project (e.g., “Production App”, “Development Environment”).
4
Copy and secure your key
Copy your API key immediately and store it securely. You won’t be able to see it again once you navigate away.
2. Using Your API Key
Include your API key as a query parameter in all requests:Security Best Practices
Environment Variables
Store your API key in environment variables, not in your source code.
IP Restrictions
Set up IP restrictions for your API keys in the dashboard to limit access to specific IP addresses or ranges.
Separate Keys
Use different API keys for development, staging, and production environments to isolate usage and improve security.
Monitor Usage
Regularly check your API usage in the dashboard to detect unusual patterns or potential security issues.
Secret Management
Rate Limits & Usage
Rate limits vary by subscription plan. Monitor your usage in the Helius Dashboard to ensure you stay within your allocated limits.
Understanding Rate Limits
- Requests per second: Based on your subscription tier
- Monthly request quota: Total requests allowed per billing cycle
- Burst allowance: Short-term spikes above your base rate limit
Rate Limit Headers
Helius includes rate limit information in response headers:Handling Rate Limits
Troubleshooting
Invalid API Key Error
Invalid API Key Error
Symptoms: 401 Unauthorized or “Invalid API Key” errorsSolutions:
- Verify your API key is correct and hasn’t been regenerated
- Check that you’re including the API key as a query parameter:
?api-key=YOUR_KEY
- Ensure there are no extra spaces or characters in your API key
- Confirm your API key hasn’t expired or been revoked
Rate Limit Exceeded
Rate Limit Exceeded
Symptoms: 429 Too Many Requests errorsSolutions:
- Check your current usage in the dashboard
- Implement exponential backoff in your retry logic
- Consider upgrading your plan for higher limits
- Optimize your requests to reduce unnecessary calls
Forbidden Access
Forbidden Access
Symptoms: 403 Forbidden errorsSolutions:
- Verify IP restrictions aren’t blocking your requests
- Check that your subscription includes access to the endpoint
- Ensure your API key has the necessary permissions
Next Steps
Quickstart Guide
Start making your first API calls with Helius
API Reference
Explore all available endpoints and methods
Rate Limits & Billing
Understand pricing and upgrade options
Dashboard
Monitor your API usage and manage keys