EXAMPLE 10 OF 16 · Easy
Follow a Pump coin into its new pool
Watch a mint’s graduation, inspect the resulting PumpSwap pool, and send its token pair and reserves to Telegram.
Before you begin#
- Choose Solana mainnet and a working RPC route in runtime settings. These examples read live data; illustrative results below will differ.
- Create and select your bot using Telegram setup, then set chatId in Globals. Keep bot tokens in the connection.
- Set mintAddress to the coin to follow. This observes future graduations; an already graduated coin will not produce its old event again.
Walk through the workflow#
- Watch graduations filters events to mintAddress.
- Get PumpSwap pool receives the pool address from the graduation event through an expression.
- Code combines the pool identity and reserves into a message. Telegram sends it to your configured chat.
Read the result#
The mint identifies the coin; the pool identifies the new trading venue. The message names both token mints so a price in quote units is not accidentally labelled USD or SOL.
Make one change#
Add the graduation signature from pumpWatchGraduations.output.signature to the message. This connects the event with the later pool snapshot. Change the watcher timeout from 300 to 0 when you want it to keep listening.
If it does not match#
A completed bonding curve and a pool snapshot are different observations. Use Get Pump coin for current state if you arrived after graduation. Stop the listener when you are done.