Buy $CLAWD
Engine ready

FunPump Copytrader

A Rust-native copy-trading engine that mirrors PumpFun and PumpSwap wallets in real time over Yellowstone gRPC — smart transaction parsing, native-DEX selling with Jupiter fallback, and an automatic risk-management backstop.

RustTokioYellowstone gRPCPumpFunPumpSwapJupiter API
2
Protocols
PumpFun + PumpSwap
Fallback retries
native DEX → Jupiter API
10 min
Risk check interval
configurable
30s
Sell confirmation window
before fallback

Activity feed

simulated example
[MONITOR]target 9x7f…b3Cq bought 240k $MEME on PumpFun
[COPY]mirrored buy → 0.05 SOL, 500bps slippage cap
[PARSER]initialize2 detected → migration to Raydium queued
[RISK]balance check passed (6/6 targets above threshold)
[SELL]native DEX sell filled on first attempt
[BALANCE]wrapped 0.1 SOL → WSOL for next cycle

Illustrative log lines based on the bot's real event types — connect your own gRPC endpoint and target wallets to see live output.

Features

Real-time monitoring

Yellowstone gRPC streams target-wallet activity directly — no polling, minimal latency.

Multi-protocol

Understands PumpFun bonding curves and PumpSwap pools, auto-detecting which one a trade uses.

Automated copy trading

Mirrors buys and sells from one or many target wallets the instant they land on-chain.

Smart transaction parsing

Decodes buy_v2, create, and initialize2 instructions — including PumpFun → Raydium migrations.

Configurable strategy

Trade size, slippage, protocol preference, and buy limits are all environment-driven.

Built-in selling strategy

Native DEX sell with automatic Jupiter API fallback and pre-sell balance verification.

Tokio-powered pipeline

Buy/sell operations run in spawned tasks so the monitoring stream is never blocked.

Risk management loop

Auto-liquidates every held token if a target wallet's balance drops below threshold.

Under the hood

engine/

The core trading loop — watches, parses, and executes.

copy_trading, monitor, parallel_processor, selling_strategy, swap, transaction_parser

dex/

Protocol-specific instruction builders for both DEXs.

pump_fun, pump_swap

services/

Background services — balances, risk checks, notifications, fast landing.

balance_manager, balance_monitor, blockhash_processor, risk_management, rpc_client, telegram, token_monitor, zeroslot

core/

Shared trading primitives used across the engine.

token, tx

common/

Config loading, in-memory caching, structured logs.

cache, config, constants, logger

error/

Centralized error types across the binary.

mod

Risk management loop

Every check interval (default 10 minutes), the bot compares every token it currently holds against the target wallets' balances. If any target's balance for a held token drops below the threshold (default 1000), the bot immediately liquidates all held tokens through the Jupiter Swap API at 1% slippage, clears its cache, and resumes monitoring.

This is a backstop, not a guarantee — RPC errors are treated as potential risk and trigger the same liquidation path. Size positions accordingly.

Config reference

# Required
GRPC_ENDPOINT=your_yellowstone_grpc_url
GRPC_X_TOKEN=none
COPY_TRADING_TARGET_ADDRESS=wallet1,wallet2

# Strategy
PROTOCOL_PREFERENCE=auto
SLIPPAGE=500
RPC_HTTP=https://your-rpc-url

# Risk management
RISK_MANAGEMENT_ENABLED=true
RISK_TARGET_TOKEN_THRESHOLD=1000
RISK_CHECK_INTERVAL_MINUTES=10

# Optional: Telegram alerts
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id

Commands

cargo run --releaseStart monitoring + copy trading
cargo run -- --autobuyRun the dedicated CLAWD autobuy loop
cargo run --release -- --check-tokensShow current token tracking status
cargo run --release -- --wrapWrap SOL to WSOL
cargo run --release -- --unwrapUnwrap WSOL to SOL
cargo run --release -- --closeClose all token accounts

FunPump Copytrader runs as a local Rust binary — nothing on this page executes trades. It needs your own Yellowstone gRPC endpoint, Solana RPC, and wallet key to run. Copy-trading carries real financial risk; nothing here is financial advice.

FunPump Copytrader — PumpFun & PumpSwap copy trading engine · FunPump