Architecture
The SDK follows a Resource-based pattern, where functionality is grouped into logical modules accessible via the mainhydric client.
Core Resources
multichainTokens: Aggregate data across all supported blockchains. Ideal for dashboards and cross-chain portfolio views.singleChainTokens: Optimized for speed and targeted operations on a specific network.tokenBaskets: Access curated lists of tokens maintained by the hydric team.
Supported Languages
| Language | Status | Package |
|---|---|---|
| TypeScript / JS | @hydric/gateway | |
| Python | hydric-gateway | |
| Go | github.com/hydric-org/gateway-go |
Core Concepts
Authentication
All requests require a valid API key. This key is set once during initialization and handled automatically by the client.Error Handling
The SDK uses specialized error classes (e.g.,HydricRateLimitError, HydricNotFoundError) to help you handle failures gracefully without parsing string messages.