A high-frequency off-chain copy-trading bot for Solana. Monitors a target wallet in real-time and replicates its trades with sub-second latency.
- Detect — Subscribes to the target wallet via Helius WebSocket (
logSubscribe) to catch transactions the moment they hit the mempool. - Confirm — Uses
signatureSubscribeto track confirmation status without polling. - Execute — Fetches and decodes the transaction (
get_transaction), then routes a mirrored trade through PumpPortal, Bags.fm, or Jupiter as a fallback. - Submit — Sends the final transaction via Helius Sender with a Jito tip for priority landing.
| Field | Description |
|---|---|
rpc_url |
Helius HTTPS RPC endpoint |
helius_wss_url |
Helius WebSocket endpoint |
bags_fm_api_key |
Bags.fm routing API key |
jupiter_api_key |
Jupiter aggregator API key |
wallet_addr |
Your public key |
wallet_key |
Your private key |
target_addr |
Wallet address to copy |
scalar |
Trade size multiplier |
max |
Maximum trade size cap (lamports) |
signatures |
Signatures to copy (for testing) |
- Detection latency: ~49–59ms
- End-to-end execution: ~550–867ms (depending on routing and pressure).
- Rust + Tokio async runtime
- Helius — RPC, WebSockets, and transaction sender
- PumpPortal / Bags.fm — Prebuilt transaction routing
- Jupiter — Fallback DEX aggregator for sells
- Jito — MEV-aware transaction landing (min tip: 0.0002 SOL)