-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
103 lines (80 loc) · 5.5 KB
/
Copy path.env.example
File metadata and controls
103 lines (80 loc) · 5.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# =============================================================================
# WHALE COPY TRADING BOT — Environment Configuration
# =============================================================================
# Setup: cp .env.example .env then fill in your values
# NEVER commit .env to git!
# =============================================================================
# ╔═══════════════════════════════════════════════════════════════════════════╗
# ║ REQUIRED — Bot won't start without these ║
# ╚═══════════════════════════════════════════════════════════════════════════╝
# WALLET (base58 private key from Phantom/Solflare export)
SOLANA_PRIVATE_KEY=your_base58_private_key
# MAIN RPC (free: helius.dev or drpc.org)
SOLANA_NODE_RPC_ENDPOINT=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
# HELIUS API (free: helius.dev — used for webhooks + deployer blacklist)
HELIUS_API_KEY=your_helius_api_key
# JUPITER (free: portal.jup.ag — used for swaps)
JUPITER_TRADE_API_KEY=your_jupiter_trade_api_key
# JITO (free, no signup — faster TX landing via block engine)
JITO_ENABLED=true
JITO_TIP_LAMPORTS=500000
JITO_BLOCK_ENGINE_URL=https://frankfurt.mainnet.block-engine.jito.wtf
# ─────────────────────────────────────────────────────────────────────────────
# DUAL gRPC YELLOWSTONE — Whale TX Detection
# ─────────────────────────────────────────────────────────────────────────────
# Bot uses TWO parallel gRPC streams for zero-miss whale detection.
# First signal wins, duplicate is discarded. If one dies, other continues.
#
# SECONDARY gRPC — PublicNode (free: publicnode.com)
# Handles: backup whale TX detection + moonbag price tracking
GEYSER_ENDPOINT=solana-yellowstone-grpc.publicnode.com:443
GEYSER_API_KEY=your_publicnode_api_key
#
# PRIMARY gRPC — Chainstack (paid ~$49/mo: chainstack.com)
# Handles: primary whale TX detection + active position price tracking
# Without this, bot works on single gRPC channel (less reliable)
#CHAINSTACK_GEYSER_ENDPOINT=yellowstone-solana-mainnet.core.chainstack.com
#CHAINSTACK_GEYSER_TOKEN=your_chainstack_geyser_token
# ╔═══════════════════════════════════════════════════════════════════════════╗
# ║ RECOMMENDED — Improves TX landing speed ║
# ╚═══════════════════════════════════════════════════════════════════════════╝
# ADDITIONAL RPC ENDPOINTS (for parallel TX send — S44 multi-send)
# TX is sent to ALL endpoints simultaneously. More = faster landing.
# Free tiers available for all providers.
#CHAINSTACK_RPC_ENDPOINT=https://solana-mainnet.core.chainstack.com/YOUR_KEY
#DRPC_RPC_ENDPOINT=https://lb.drpc.org/ogrpc?network=solana&dkey=YOUR_KEY
#ALCHEMY_RPC_ENDPOINT=https://solana-mainnet.g.alchemy.com/v2/YOUR_KEY
SOLANA_PUBLIC_RPC_ENDPOINT=https://api.mainnet-beta.solana.com
# BLOXROUTE (free: portal.bloxroute.com — staked connections via swQoS)
#BLOXROUTE_AUTH_HEADER=your_bloxroute_auth_header
# WSS ENDPOINTS (needed if using websocket listeners instead of gRPC)
#CHAINSTACK_WSS_ENDPOINT=wss://solana-mainnet.core.chainstack.com/YOUR_KEY
#SOLANA_NODE_WSS_ENDPOINT=wss://your-wss-endpoint
#DRPC_WSS_ENDPOINT=wss://lb.drpc.org/ogrpc?network=solana&dkey=YOUR_KEY
#QUICKNODE_WSS_ENDPOINT=wss://your-quicknode-endpoint
# ╔═══════════════════════════════════════════════════════════════════════════╗
# ║ OPTIONAL — Extra features ║
# ╚═══════════════════════════════════════════════════════════════════════════╝
# Jupiter price monitoring (separate key from trade key)
#JUPITER_API_KEY=your_jupiter_price_key
# Helius Enhanced TX parsing (improves whale TX analysis)
#GEYSER_PARSE_API_KEY=your_helius_parse_key
# PumpPortal (alternative sell path for pump.fun tokens)
#PUMPPORTAL_API_KEY=your_pumpportal_key
# Telegram notifications
#TELEGRAM_BOT_TOKEN=your_bot_token
#TELEGRAM_CHAT_ID=your_chat_id
# Discord notifications
#DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...
# Redis (default: localhost:6379, change only if remote)
#REDIS_URL=redis://localhost:6379
# RPC weights for whale poller fallback (total ~100, only used when gRPC is down)
#RPC_WEIGHT_QUICKNODE=50
#RPC_WEIGHT_CHAINSTACK=40
#RPC_WEIGHT_DRPC=10
#RPC_WEIGHT_ALCHEMY=0
# Health check tuning
HEALTH_CHECK_INTERVAL=30
HEALTH_CHECK_TIMEOUT=5
FAILOVER_THRESHOLD=3
RPC_TEST_INTERVAL=30