[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-75493":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":10,"pushedAt":10,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":15,"starSnapshotCount":15,"syncStatus":45,"lastSyncTime":46,"discoverSource":47},75493,"Solana-Trading-Bot","TauriccResearch\u002FSolana-Trading-Bot","TauriccResearch","Solana Sniper Bot Raydium Sniper Bot Pumpfun Sniper Bot Bonkfun Sniper Bot Meteora Sniper Bot","",null,"TypeScript",56,72,1,0,273,52.59,false,"master",true,[22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"arbitrage","auto-trade-bot","auto-trading","bot","copytrading","crypto","jito","liquidity","mev","pumpfun-sniper","pumpswap","raydium-bot","raydium-sniper","raydium-sniper-bot","sandwitch","sniper","sniper-bot-solana","solana","solana-sniper-bot","token-pool","2026-06-12 04:01:18","# Solana Sniper Bot for Raydium\n\nTypeScript bot that listens for new Raydium CPMM pool initialization events on Solana and can execute buy\u002Fsell logic with risk checks.\n\n## Features\n\n- Subscribes to Raydium CPMM program logs in real time.\n- Detects new pool initialization transactions.\n- Applies checks before trading (liquidity threshold, token tax, authority checks).\n- Supports take-profit, trailing logic, and hard stop-loss logic.\n- Includes Jito bundle tip support.\n\n## Requirements\n\n- Node.js 18+\n- Yarn or npm\n- Solana mainnet RPC endpoint + websocket endpoint\n- Funded wallet private key (base58)\n\n## Install\n\n```bash\nyarn install\n```\n\nor\n\n```bash\nnpm install\n```\n\n## Environment Setup\n\nCreate a `.env` file in project root.\n\nExample:\n\n```env\nRPC_ENDPOINT=https:\u002F\u002Fmainnet.helius-rpc.com\u002F?api-key=YOUR_KEY\nRPC_WEBSOCKET_ENDPOINT=wss:\u002F\u002Fmainnet.helius-rpc.com\u002F?api-key=YOUR_KEY\nPRIVATE_KEY=YOUR_BASE58_SECRET_KEY\n\nBUY_AMOUNT=0.00001\nWSOL_AMOUNT=0.00001\nDELAY=2000\nMIN_LIQUIDITY_SOL=100\n\nMAX_DEV_WALLET_SUPPLY_PCT=20\nMAX_SELL_TAX_PCT=10\nREQUIRE_REVOKED_UPGRADE_AUTHORITY=true\n\nTP_LEVELS_PCT1=25\nTP_LEVELS_PCT2=50\nTP_LEVELS_PCT3=100\n\nTP_SIZE_PCT1=0.3\nTP_SIZE_PCT2=0.4\nTP_SIZE_PCT3=0.3\n\nTRAIL_DISTANCE_PCT=10\nHARD_STOP_LOSS_PCT=-25\n\nJITO_FEE=0.0001\n```\n\n## Env Variable Reference\n\n- `RPC_ENDPOINT`: HTTP Solana RPC URL.\n- `RPC_WEBSOCKET_ENDPOINT`: WS Solana RPC URL for log subscriptions.\n- `PRIVATE_KEY`: Base58 private key used for transaction signing.\n- `BUY_AMOUNT`: Buy sizing input used in trade logic.\n- `WSOL_AMOUNT`: SOL amount wrapped to WSOL for swap transfer.\n- `DELAY`: Milliseconds between sell-condition checks.\n- `MIN_LIQUIDITY_SOL`: Minimum detected liquidity required before trading.\n- `MAX_DEV_WALLET_SUPPLY_PCT`: Max allowed creator wallet supply percent.\n- `MAX_SELL_TAX_PCT`: Max allowed transfer fee\u002Ftax percent for Token-2022 checks.\n- `REQUIRE_REVOKED_UPGRADE_AUTHORITY`: Enables authority revocation check logic.\n- `TP_LEVELS_PCT1..3`: Profit percentage thresholds for multi-step TP.\n- `TP_SIZE_PCT1..3`: Portion to sell at each TP threshold.\n- `TRAIL_DISTANCE_PCT`: Trailing distance logic threshold.\n- `HARD_STOP_LOSS_PCT`: Loss threshold where full exit is triggered.\n- `JITO_FEE`: Tip amount used in Jito bundle transaction flow.\n\n## Run\n\nStart sniper listener:\n\n```bash\nyarn start\n```\n\nBuild:\n\n```bash\nyarn build\n```\n\nRun test helper:\n\n```bash\nyarn test\n```\n\n## Project Structure\n\n- `src\u002Findex.ts`: Main runtime entrypoint (listener startup).\n- `src\u002Futils\u002Futils.ts`: Transaction parsing, checks, strategy execution.\n- `src\u002Futils\u002Fjito.ts`: Jito bundle + tip submission flow.\n- `src\u002Fconstants\u002Fconstants.ts`: Env loading and runtime constants.\n- `src\u002Fraydium-cpmm\u002F`: Raydium CPMM interaction helpers.\n\n## Notes\n\n- Never commit your real `.env` or wallet key.\n- Keep `node_modules\u002F` out of git.\n- Use a dedicated low-balance wallet for bot operation.\n- Test with small size settings first.\n\n## Troubleshooting\n\n- If startup exits immediately, verify all required env keys are set.\n- If no events are detected, verify RPC websocket endpoint supports logs.\n- If buys fail, check wallet SOL balance and token account creation fees.\n- If sells do not trigger, review TP\u002FSL numbers and ensure they are numeric.\n\n","Solana Sniper Bot 是一个用于在Solana区块链上自动执行交易的机器人，特别针对Raydium去中心化交易所。它使用TypeScript编写，能够实时监听Raydium CPMM池初始化事件，并基于预设的风险检查执行买卖逻辑。该机器人具备订阅实时日志、检测新池创建、以及在交易前进行流动性阈值等多维度检查的功能；支持止盈、追踪止损和硬止损策略，并兼容Jito打包交易提示功能。适用于希望在Solana网络上捕捉快速价格变动机会的加密货币交易者或开发者，尤其是在Raydium平台上寻找套利空间时。",2,"2026-06-11 03:52:56","CREATED_QUERY"]