24 min read
Overview
Monitoring large token movements on-chain, often referred to as "whale" activity, can provide valuable insights into market sentiment and potential price action.
This guide will walk you through creating a real-time whale alert bot for the HYPE token on the Hyperliquid blockchain. You’ll build a system that not only detects large transfers but also enriches the data with live USD prices from HyperCore and sends instant notifications to a Telegram channel. To achieve this, we'll leverage the power and efficiency of Quicknode Webhooks.
What You Will Do
- Create a Quicknode Webhook that filters HYPE
Transferevents from Hyperliquid EVM - Verify payload authenticity with an HMAC signature before processing
- Read the HYPE spot price from HyperCore via HyperEVM precompiles
- Send tiered whale alerts (fish, dolphin, whale) to a Telegram channel
What You Will Need
- A Quicknode account with a Hyperliquid EVM endpoint
- Node.js 20+, npm (or another package manager), and a code editor like VS Code
- A Telegram account (if you wish to build a Telegram bot)
- Basic knowledge of JavaScript
- A tool for exposing your local server to the internet, such as ngrok or localtunnel (if you need to test webhooks locally)
Quicknode Webhooks operate on a "push" model. Instead of you repeatedly asking the blockchain for new data (polling), Webhooks monitor the chain for you and push the relevant data to your application the moment an event occurs.
This approach is highly efficient, providing several key benefits:
- Real-Time Data: Receive notifications instantly, without the latency of polling cycles.
- Reduced Overhead: Saves you from managing a complex and resource-intensive polling infrastructure.
- Powerful Filtering: Process and filter data on Quicknode's side, so your server only receives the exact information it needs.
- Cost Efficient: Only pay per event delivered, making it a budget-friendly solution for real-time data monitoring.
Whale Alert Bot Project
The whale alert bot consists of several interconnected components that work together to deliver real-time notifications:
-
Hyperliquid Blockchain: A
Transferevent (Transfer(address,address,uint256)) for the HYPE token is emitted when a transfer occurs. -
Quicknode Webhooks with Filtering: The Webhook is constantly monitoring the chain and captures this event based on the filter function we define.
-
Webhook Delivery: Quicknode sends the filtered payload via a secure POST request to our server endpoint.
-
Node.js Server: Our server receives the data, validates its authenticity using the webhook's security token, and processes it.
-
Price Fetching: The server calls the HyperCore precompile contract on Hyperliquid to get the current USD price of HYPE.
-
Telegram Bot: Finally, the server formats a rich, readable message and uses the Telegram Bot API to send the alert to our designated channel.

This is the end-to-end event flow we will implement. Now, let's start building the Hyperliquid Whale Alert Bot.
Step 1: Create Your Telegram Bot and Channel
First, you'll need a Telegram bot and a channel where it can post alerts.
Create a Bot with BotFather
- Open Telegram and search for the BotFather.
- Start a chat with BotFather and use the command
/newbotto create a new bot. - Follow the prompts to set a name and username for your bot.
- BotFather will provide you with a Bot Token. Save this token securely; you'll need it for your
.envfile.
Create a Channel
- In Telegram, create a new channel. You can make it public or private.
- For a public channel, give it a memorable username (e.g., @hyperliquid_whales). This username is your
TELEGRAM_CHANNEL_ID. - For a private channel, you will need its numeric Chat ID. You can get this by forwarding a message from the channel to a bot like
@JsonDumpCUBot, and checking the chat ID it provides (i.e.,forward_from_chat.id).
Add Your Bot to the Channel
- Open your newly created channel's settings.
- Add your bot and make it an administrator.
You now have your TELEGRAM_BOT_TOKEN and your TELEGRAM_CHANNEL_ID.
Step 2: Create Your Quicknode Hyperliquid EVM Endpoint
Now, create your Quicknode Hyperliquid EVM endpoint that will be used to interact with the Hyperliquid Core to fetch HYPE price data.
First, you'll need a Quicknode account. If you already have one, just log in. Once you're on your Quicknode dashboard:
- Navigate to the Endpoints page
- Click the New Endpoint button
- Select the Hyperliquid EVM Mainnet network
- Create your endpoint
After your endpoint is created, copy your endpoint URL and keep it handy. You'll need to add it to your .env file in a later step.
Step 3: Create Your Quicknode Webhook
Now, let's set up the Quicknode Webhook that will monitor the Hyperliquid blockchain.
Create the Webhook
- Go to the Quicknode Dashboard, and navigate to the Webhooks section.
- Click Create Webhook and select Hyperliquid EVM Mainnet as the blockchain.
- Select Start with a custom filter to create a custom filter.