n8n Guides
n8nsolanacryptofree

Solana new token account / airdrop alert on Telegram

Who this is for: anyone who wants to know the moment a wallet holds a brand-new SPL token it never had before — the usual signature of an airdrop landing — without checking a portfolio tracker every day.

What the workflow does

Every 5 minutes n8n asks a public Solana RPC for the full list of SPL token accounts owned by the wallet you set. It compares the set of mint addresses against the ones seen on the previous run and sends a Telegram message listing only the mints that are genuinely new — a transaction alert would fire on every transfer; this fires only on a new token appearing.

Procedure

  1. Download the base solana-wallet-watcher.json file and import it.
  2. Replace the "Ultime firme del wallet" node's body with the RPC method getTokenAccountsByOwner, passing your WALLET_ADDRESS and {"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"} as the filter.
  3. In the Code node, extract the set of mint addresses from the response and diff it against the mint set saved in $getWorkflowStaticData from the previous run; keep only the newly-appeared mints.
  4. Point the Telegram node at your bot (@BotFather) and list the new mint address(es) — link each to Solscan for a quick look.
  5. Activate the workflow.

How it works under the hood

getTokenAccountsByOwner with the SPL Token program ID returns every token account the wallet holds. Diffing that set on every run, rather than inspecting individual transactions, catches airdrops and direct mints even when they don't show up as a normal transfer to the wallet.

Related: to be alerted on every transaction instead of only new tokens appearing, see the wallet transaction alert guide.