New Token Sniper · Pump.fun · Uniswap V2

Memecoin Trading Agent

Snipe New Token Launches Within Seconds of Deployment

Monitor new liquidity pool creations across Uniswap, Pump.fun, and PancakeSwap in real time. Validate safety, snipe the launch, and let automated take-profit and stop-loss rules manage the exit.

<2s Snipe Latency
4 Chains Supported
3x Default Take-Profit
5+ Safety Filters

What Is Memecoin Sniping?

Memecoin sniping is the practice of buying a newly launched token within seconds — sometimes milliseconds — of its liquidity pool being created on a decentralised exchange. The core insight is simple: the highest-percentage gains on memecoins almost always occur in the first minutes of trading, before the token gains social attention and broader retail buyers arrive. A human trader refreshing Uniswap or Pump.fun cannot react fast enough to catch these windows consistently. An AI agent can.

Purple Flea's infrastructure watches the blockchain mempool and confirmed event logs simultaneously, so your agent receives a webhook the moment a new Uniswap V2 or V3 pair is created on Ethereum or Arbitrum, a Pump.fun token graduates from its bonding curve on Solana, or a new PancakeSwap pair goes live on BNB Chain. The median time from block confirmation to webhook delivery is under 400 milliseconds, giving your agent a head start over manual traders by multiple orders of magnitude.

The challenge is not speed alone — it is selectivity. The vast majority of new token launches are either scams (rug pulls), honeypots (contracts that block selling), or low-liquidity traps with no exit liquidity. A sniping agent that fires on every new pool will lose money rapidly. Purple Flea's validation pipeline runs a suite of automated safety checks before authorising a snipe, filtering out the overwhelming majority of malicious launches before a single dollar is deployed.

The result is a fully autonomous loop: detect new pool creation, validate the contract and liquidity, snipe the token at launch price, then exit automatically at your configured take-profit or stop-loss level — all without any human intervention.


Multi-Chain New-Token Monitoring

Purple Flea monitors new liquidity pool creation events across four chains in real time. Each chain has its own memecoin culture and dominant venue.

Uniswap V2 / V3 — Ethereum & Arbitrum

Monitors PairCreated events from the Uniswap V2 factory and PoolCreated from the V3 factory. Filters by ETH or USDC as the base token. Average block time 12 seconds on mainnet, sub-2 seconds on Arbitrum.

Pump.fun — Solana

Listens to Pump.fun's on-chain program for new token creation and tracks the bonding curve graduation threshold (~$69k market cap). The optimal snipe window is often just after graduation when the token migrates to Raydium and real price discovery begins.

PancakeSwap — BNB Chain

BNB Chain produces a new block every 3 seconds and has historically been the highest-volume chain for retail memecoins. Purple Flea monitors PancakeSwap V2 and V3 factory events with sub-second webhook delivery after block confirmation.


Automated Rug-Pull and Honeypot Detection

Before your agent fires a snipe, Purple Flea's validation pipeline runs five checks automatically. Any single failure aborts the trade.

Check Threshold What It Catches
Minimum Liquidity $10,000 USD Sub-$10k pools have no exit liquidity — any sell craters the price.
Contract Verified Source on Etherscan / Solscan Unverified contracts cannot be read for hidden functions.
Ownership Renounced Owner == 0x000...000 Active owners can call mint() or rug at any time.
Honeypot Simulation Simulated sell succeeds Transfer tax >15% or disabled sell function detected before entry.
Blacklist / Flagged Not in Purple Flea scam DB Cross-references known scam deployer addresses and token names.

These five checks are run concurrently so total validation latency adds roughly 300–600ms before the snipe is placed. This is a deliberate trade-off: accepting a slightly later entry in exchange for filtering out the large majority of scam launches. You can configure which checks are mandatory and which are advisory via the API, giving advanced agents the ability to tune the speed / safety balance for their specific strategy.


Sniping Agent: Register, Validate, Execute

The full snipe loop in Node.js. Register a webhook for new Uniswap pools, validate each launch, fire the snipe, then set automatic take-profit and stop-loss orders.

1. Register webhook for new Uniswap V2 pairs
import PurpleFlea from '@purpleflea/sdk';

const pf = new PurpleFlea({ apiKey: process.env.PURPLE_FLEA_API_KEY });

// Register webhook — fires on every new Uniswap V2 pool
await pf.webhooks.create({
  event: 'new_pool',
  chain: 'ethereum',
  dex: 'uniswap_v2',
  url: 'https://my-agent.example.com/snipe-hook',
  filters: {
    base_token: ['WETH', 'USDC'],  // only ETH or USDC pairs
    min_liquidity_usd: 10000
  }
});
2. Webhook handler — validate then snipe
// Express.js handler at POST /snipe-hook
app.post('/snipe-hook', async (req, res) => {
  const { token_address, pair_address, liquidity_usd } = req.body;

  // Run all five safety checks concurrently
  const validation = await pf.tokens.validate({
    address: token_address,
    chain: 'ethereum',
    checks: ['honeypot', 'ownership', 'verified', 'liquidity', 'blacklist']
  });

  if (!validation.safe) {
    console.log(`Skipping ${token_address}: ${validation.reason}`);
    return res.json({ action: 'skip' });
  }

  // Snipe — buy $200 worth at launch price
  const order = await pf.spot.buy({
    token: token_address,
    chain: 'ethereum',
    amount_usd: 200,
    slippage: 25,   // memecoins need high slippage tolerance
    dex: 'uniswap_v2'
  });

  // Set 3x take-profit and -50% stop-loss
  await pf.orders.setExitRules({
    position_id: order.position_id,
    take_profit_multiplier: 3.0,   // sell all at 3x entry
    stop_loss_multiplier: 0.5      // stop-loss at -50%
  });

  res.json({ action: 'sniped', order_id: order.id });
});

Pump.fun Integration: Bonding Curve Mechanics

Pump.fun uses a bonding curve to bootstrap new tokens before they have any secondary-market liquidity. When a token is first created on Pump.fun, buyers purchase from the curve at a programmatically determined price that rises as more tokens are bought. This creates predictable price behaviour in the early phase: early buyers get the lowest prices, and momentum builds as the token climbs toward the graduation threshold.

Graduation occurs when the bonding curve reaches approximately $69,000 in collected SOL. At that point, Pump.fun automatically creates a Raydium liquidity pool and the token enters open market trading. Historically, many tokens see a sharp price spike immediately after graduation as broader Solana DeFi traders discover the new pair on Raydium aggregators.

Two sniping strategies work well on Pump.fun. The early bonding curve entry strategy buys during the bonding curve phase when a token shows strong buying velocity — the agent monitors SOL inflow rate and fires a buy if the token is on track to graduate within 10 minutes. The graduation snipe strategy waits until graduation is confirmed and buys the Raydium pair within the first few blocks of open trading, capturing the post-graduation momentum spike.

Purple Flea's Solana webhook fires on both events. The validation checks adapt to Solana's on-chain model: instead of checking contract ownership renouncement (an EVM concept), the agent checks whether the Pump.fun program retains mint authority and whether the token metadata is frozen. Honeypot simulation uses a dry-run swap against the Raydium pool to confirm a sell transaction would succeed.

Pump.fun graduation snipe
await pf.webhooks.create({
  event: 'pump_graduation',
  chain: 'solana',
  url: 'https://my-agent.example.com/sol-snipe',
  filters: {
    min_graduation_liquidity_usd: 50000,
    min_holder_count: 50   // at least 50 distinct holders
  }
});

Position Limits and Daily Loss Caps

Memecoin trading is high-variance by nature. Even with robust safety filters, a significant percentage of positions will hit the stop-loss. The goal of risk management is not to eliminate losses — it is to ensure that the agent survives long enough for the winning positions to materialise and cover losses with margin.

Purple Flea exposes three key risk management parameters at the agent level, independent of individual position take-profit and stop-loss rules:

Max Position Size

Default $500 per token. No single memecoin position is large enough to cause catastrophic loss if it goes to zero. Configurable per chain and per strategy.

Max Open Positions

Default 10 concurrent memecoins. Prevents capital dilution across too many simultaneous positions while maintaining diversification across launches.

Daily Loss Limit

Default -$1,000 daily drawdown halt. When total realised losses in a 24-hour window hit this threshold, the agent stops opening new positions and waits for the reset.

Configure agent-level risk limits
await pf.agent.setRiskLimits({
  max_position_size_usd: 500,
  max_open_positions: 10,
  daily_loss_limit_usd: -1000,
  auto_halt_on_daily_limit: true
});

Risk Disclosure: Memecoin trading involves substantial risk of total loss of invested capital. The majority of new token launches result in zero or near-zero value within hours of launch. This API is infrastructure only — Purple Flea does not provide financial advice and does not guarantee any returns. Never deploy capital you cannot afford to lose entirely.


Start Sniping in Minutes

Register for a Purple Flea API key, configure your webhook endpoint, and your agent will be live on the next token launch.