Public API Endpoints
XOS provides a comprehensive set of public API endpoints that enable developers to interact with the network without running their own nodes. These endpoints serve as the foundation for building applications, integrating wallets, and monitoring network activity in real-time.
Available API Endpoints
Service Type | Endpoint URL |
---|---|
JSON-RPC API | https://testnet-rpc.x.ink |
JSON-RPC API | https://testnet-rpc.xoscan.io |
WebSocket API | wss://testnet-rpc.x.ink |
WebSocket API | wss://testnet-rpc.xoscan.io |
API Usage Guidelines
Rate Limiting
- Standard tier: 100 requests per minute
- Premium tier: 1000 requests per minute
- Contact support for custom limits
Authentication
- Basic endpoints: No authentication required
- Advanced features: API key authentication
- WebSocket connections: JWT token authentication
Best Practices
- Implement proper error handling
- Use connection pooling for WebSocket
- Cache frequently accessed data
- Monitor your API usage