This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see Hyperliquid methods for the full availability breakdown.
eth_subscribe("syncing") JSON-RPC method allows developers to subscribe to notifications about the synchronization status of a Hyperliquid EVM node. The subscription provides real-time updates when the node starts or stops syncing with the network, making it essential for monitoring node health and ensuring data consistency.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
- subscription type (string, required): Keyword identifying the type of event to subscribe to,
syncingin this case
Response
The method returns a subscription ID that can be used to identify and manage the subscription.Response structure
Initial subscription response:subscription— the subscription ID
startingBlock— the block number where sync startedcurrentBlock— the current block number being processedhighestBlock— the estimated highest block number to sync to
- Returns
false
Usage example
Basic implementation
Note that subscriptions require a WebSocket connection. Install WebSocket cat for testing:
wscat
JavaScript implementation
Python implementation with alerting
Combined monitoring with health checks
Example request
eth_subscribe("syncing") runs over a WebSocket connection. After subscribing, the node sends a notification with the current state and then another on every change: false when fully synced, or an object with startingBlock, currentBlock, and highestBlock while syncing. The Shell tab uses wscat for a quick check; the Python, JavaScript, and TypeScript tabs use the WebSocket transport of each library.
Use your own endpoint in your code. The code examples use a placeholder Chainstack endpoint (YOUR_CHAINSTACK_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the Chainstack console. The curl above uses a shared public endpoint for quick checks only; do not use it in production.
Use cases
Theeth_subscribe("syncing") method is essential for applications that need to:
- Node health monitoring: Track whether nodes are keeping up with the network
- Data consistency checks: Ensure queries are made against fully synced nodes
- Load balancing: Route requests away from syncing nodes
- Alerting systems: Notify operators when nodes fall behind
- Deployment validation: Verify new nodes are syncing correctly
- Performance monitoring: Track sync speed and estimate completion times
- Failover management: Automatically switch to backup nodes during sync issues
- Infrastructure scaling: Identify when additional nodes are needed
- Maintenance planning: Schedule updates when nodes are fully synced
- Service reliability: Ensure high availability by monitoring sync status