DocsTasks

Anti-Sniper

Watch outside buyers after launch — if they grab too much, auto-sell everything or stop your buys.

Anti-Sniper watches the token from the moment it starts. If outside wallets cross a threshold, it acts at once: emergency-sell every task wallet, or stop your buying tasks. Add it on the Tasks step so it's armed at launch.

An Anti-Sniper task.
An Anti-Sniper task.

Thresholds#

  • Supply threshold — outside holders' share of supply that triggers.
  • Spend threshold — total outside buyers have spent.

Set one or both; whichever trips first fires.

Action#

  • Emergency sell all — every task wallet market-sells its whole bag at the task's slippage (default 50 %, so it lands). Keep dev wallet spares Dev-role wallets. Built for speed: skips pre-send simulation and pays the Priority fee (default 5×) to land early in the next block, ahead of the sniper's exit.
  • Stop our buys — stops your other buying tasks on this token; sells nothing.

Window and exceptions#

  • Monitor window — auto-stop (no sell) after this many seconds.
  • Ignore buyers — addresses that never count as snipers (partners, market makers). Your own wallets never count.
Slippage is deliberately high

An emergency sell that fails on slippage is worse than one that lands low. Lower the default only if you know the pool is deep.

Every option on the Anti-Sniper formantisniper
  • Supply thresholdnumberoptional0100 %
    External-holder % of supply that triggers the action. Set this and/or the spend threshold — the first limit reached triggers the action.
  • Spend thresholdnumberoptional
    Total the outside buyers spent (gross buys on the coin-quoted pool) that triggers the action. Empty = supply threshold only.
  • Actionchoicedefault Emergency sell all
    Emergency sell allStop our buys
  • Monitor fornumberoptional
    Auto-stop (no sell) after this window.
  • Total supply (raw)numberoptional
    Percentage denominator; from chain if blank.
  • Keep creator wallet tokenstoggledefault off
    Emergency sell all leaves the dev-role wallets alone.
  • Ignore buyers (addresses)addresses
    Buyers that never count as outside snipers (a partner, a market maker). Your own wallets never count.
  • Slippagenumberdefault 5000 bps15000 bps
  • Priority feenumberdefault 250000 µlam/CU050000000 µlam/CU
    Compute-unit price of the emergency sell, in micro-lamports per CU. The default is 5× the normal swap fee (about 0.00005 SOL per wallet) so the dump lands early in the next block; the sell also skips the RPC preflight simulation.
  • Simulatetoggledefault off
    Check the task without sending transactions or spending funds.