n8n Guides
n8nsolanacryptofree

Solana wallet balance drop alert on Telegram

Who this is for: anyone who needs to know when a wallet's SOL balance falls below a level — a hot wallet that pays gas for a bot, a treasury with a minimum reserve — before it runs dry, not after every single transaction.

What the workflow does

This is a small variant of the wallet transaction alert workflow: instead of listing every signature, it asks a public Solana RPC for the wallet's current balance every 5 minutes and pings Telegram only the moment the balance crosses below your threshold — not on every poll while it stays low.

Procedure

  1. Download the base solana-wallet-watcher.json file and import it (Workflows → Import from File).
  2. Replace the "Ultime firme del wallet" HTTP Request node's body with the RPC method getBalance: {"jsonrpc":"2.0","id":1,"method":"getBalance","params":["<WALLET_ADDRESS>"]} against https://api.mainnet-beta.solana.com.
  3. In the Code node, replace the signature-diff logic with a threshold check: read result.value (lamports, divide by 1e9 for SOL), compare against your BALANCE_THRESHOLD env var, and set a boolean only on the transition from above to below — mirroring the state-change logic the price alert workflow already uses.
  4. Point the Telegram node at your bot (via @BotFather) and your chat_id.
  5. Activate the workflow.

How it works under the hood

getBalance is a single lightweight RPC call — cheaper than paging through signatures — and the balance in lamports needs dividing by 1e9 to get SOL. State (last known side of the threshold) lives in $getWorkflowStaticData, so a restart doesn't re-trigger a stale alert.

Related: if you want a ping on every transaction rather than a balance threshold, see the wallet transaction alert guide instead.