The Chainworks API uses token-based authentication over WebSocket connections.Documentation Index
Fetch the complete documentation index at: https://docs.chainworks.co/llms.txt
Use this file to discover all available pages before exploring further.
Authentication Flow
- Obtain your API credentials (API URL and Auth Token)
- Connect to the WebSocket server with your token
- The server validates your token on connection
- If valid, you can start making API requests
Connecting with Credentials
TypeScript
Python
Environment Variables
We recommend storing your credentials in environment variables:Connection Events
Handle connection lifecycle events to ensure robust operation:Reconnection
Socket.IO automatically handles reconnection. You can configure the behavior:Security Best Practices
- Never expose tokens in client-side code - Use server-side proxies for browser applications
- Rotate tokens regularly - Contact us to regenerate compromised tokens
- Use environment variables - Never hardcode tokens in source code
- Monitor usage - Track API calls to detect unauthorized access
Rate Limits
API rate limits depend on your subscription tier. Contact us for details about rate limits and quotas.Getting Credentials
To obtain API credentials:- Contact us at info@chainworks.co
- Describe your use case
- We’ll provision credentials for your application
Next Steps
- Quick Start - Get started with your first request
- EVM Endpoints - Explore Ethereum, Base, and BSC endpoints
- SVM Endpoints - Explore Solana endpoints

