n8n Guides
n8nsolanacryptofree

Solana token price watchlist alert on Telegram

Who this is for: anyone tracking more than one SPL token who doesn't want to run a separate workflow — and a separate Telegram bot chat — per token.

What the workflow does

The base price alert workflow watches one mint against one threshold. This variant queries Jupiter's price API with a comma-separated list of mint addresses in a single call, checks each token's price against its own threshold, and sends one Telegram message per token that just crossed — so a five-token watchlist still costs one HTTP request every 5 minutes, not five.

Procedure

  1. Download the base solana-price-alert.json file and import it.
  2. Replace the single TOKEN_MINT env var with a WATCHLIST env var holding a JSON array, e.g. [{"mint":"...","soglia":1.5,"direzione":"sopra"},{"mint":"...","soglia":0.02,"direzione":"sotto"}].
  3. In the "Prezzo attuale (Jupiter)" node, build the URL as https://price.jup.ag/v6/price?ids= followed by the mints joined with commas — Jupiter returns all requested prices in one response body.
  4. In the Code node, loop over the watchlist entries instead of a single token, reusing the same state-change logic (alert only when a token flips from below to above threshold, or vice versa) per mint, keyed in $getWorkflowStaticData.
  5. Point the Telegram node at your bot (@BotFather); the message text should include which token triggered.
  6. Activate the workflow.

How it works under the hood

Jupiter's /v6/price endpoint accepts multiple comma-separated ids and returns a price map keyed by mint in one response, so batching tokens doesn't multiply the number of RPC/API calls — only the size of the Code node's loop grows.

Related: for a single token with a fixed threshold, the plain price alert guide is simpler to set up.