This page outlines pricing for Hyperliquid JSON-RPC methods, WebSocket subscriptions, and gRPC streaming. All costs are measured in API credits.
Network Specifications
Hyperliquid generates approximately 12 blocks per second, resulting in ~31 million blocks per month. This high block frequency affects data volume and credit consumption for streaming applications.
JSON-RPC Methods
Each JSON-RPC method call consumes credits based on the operation performed. Billing is per API response, meaning every successful response (including empty blocks) is counted.
Hyperliquid can produce blocks without transactions due to its high block frequency. These empty blocks return valid data and are billed at standard rates.
Batch Method Billing
The batch methods hl_getLatestBlocks and hl_getBatchBlocks can return a maximum of 200 blocks per request. These methods offer flexible billing where you're charged the lower amount between:
- Flat rate: 1,000 credits per request
- Per-block rate: 5 credits × blocks returned
This ensures you only pay for what you use when requesting smaller batches.
For example: A request for 50 blocks is charged at 250 credits (50 × 5), not the 1,000-credit flat rate.
WebSocket Subscriptions
WebSocket connections enable real-time data streaming from Hyperliquid. Charges include subscription management and data transfer costs. Data volume is calculated based on the total size of messages received from your active subscriptions.
gRPC Streaming
Data volume billing for gRPC is currently in development and will go live in the February billing cycle. Plan limits shown below are preliminary and subject to change before launch.
gRPC provides streaming with advanced filtering capabilities. Billing is based on the volume of raw data that matches your subscription filters.
gRPC streaming is billed at 10 credits per 0.1 MB of filtered data.
Plan Limits
Each plan tier includes limits on concurrent gRPC streams and the number of filters you can apply per stream. These limits help manage resource allocation across different subscription levels.
Questions
Have questions about pricing or need help estimating your usage? Contact our support team.