{"id":25912923,"url":"https://github.com/princrypto/solana-pumpfun-bot","last_synced_at":"2026-01-18T20:33:23.533Z","repository":{"id":280235364,"uuid":"941373205","full_name":"Princrypto/solana-pumpfun-bot","owner":"Princrypto","description":"Used to snipe new tokens on Pump.Fun and Raydium for profit. This code is error free and requires careful reading on how to use it.","archived":false,"fork":false,"pushed_at":"2025-03-02T07:00:42.000Z","size":15146,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-02T07:20:41.442Z","etag":null,"topics":["blockchain","crypto","pump-fun","pump-fun-bot","pump-fun-buy-bot","raydium","raydium-bot","raydium-sniping","sniper-bot-solana-raydium","sniper-solana-bot","sol-bot","solana","solana-token","spl-token","spl-token-snipe","tradingbot","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"ms-pl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Princrypto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":["https://www.coalitionforthehomeless.org"]}},"created_at":"2025-03-02T06:00:32.000Z","updated_at":"2025-03-02T07:00:45.000Z","dependencies_parsed_at":"2025-03-02T07:31:36.550Z","dependency_job_id":null,"html_url":"https://github.com/Princrypto/solana-pumpfun-bot","commit_stats":null,"previous_names":["princrypto/solana-pumpfun-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princrypto%2Fsolana-pumpfun-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princrypto%2Fsolana-pumpfun-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princrypto%2Fsolana-pumpfun-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Princrypto%2Fsolana-pumpfun-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Princrypto","download_url":"https://codeload.github.com/Princrypto/solana-pumpfun-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644551,"owners_count":19996179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","crypto","pump-fun","pump-fun-bot","pump-fun-buy-bot","raydium","raydium-bot","raydium-sniping","sniper-bot-solana-raydium","sniper-solana-bot","sol-bot","solana","solana-token","spl-token","spl-token-snipe","tradingbot","web3"],"created_at":"2025-03-03T10:17:28.488Z","updated_at":"2025-03-03T10:17:29.311Z","avatar_url":"https://github.com/Princrypto.png","language":"TypeScript","funding_links":["https://www.coalitionforthehomeless.org"],"categories":[],"sub_categories":[],"readme":"![](readme/solmemebot.png)\n\n**Solana PumpFun Bot** that listens to new Pump.Fun \u0026\u0026 Raydium pools and buys tokens for a fixed amount in WSOL.\nDepending on the speed of the RPC node, the purchase usually happens before the token is available on UI for swapping. This program took me two months to complete, and I hope it will be helpful to everyone looking to snipe tokens on Solana!\n\nNote: Even for testing, besides using WSOL as the exchange token, it’s important to keep more SOL for transaction fees. The configuration example is: \"1 SOL / 0.1 WSOL / QUOTE_AMOUNT=0.01\" You can adjust it according to your own situation.\n\n- `WSOL Snipe`\n- `Auto-Sell`\n- `TP/SL`\n- `Min Liq`\n- `Burn/Lock Check`\n- `Renounce Check`\n- `Fast Buy`\n\n\u003e [!NOTE]\n\u003e This is provided as is, for learning purposes.\n\n## SETUP\nTo run the script you need to:\n1. Download and extract the repository files: Use the command \"git clone https://github.com/Princrypto/solana-pumpfun-bot\" or click the green \"Code\" button and select \"Download ZIP\".\n2. Install the Node.js environment on your computer : https://nodejs.org/en\n3. The runtime environment should be a terminal or VSCode. Detailed steps are provided below, please read carefully.\n4. Convert some SOL into WSOL for trading. Note: Even if you only want to run the test for one hour, you still need to retain enough SOL, as gas fees are paid in SOL. For example (10 SOL) : (1 WSOL) : (QUOTE_AMOUNT=0.1) +-\n\n`Jupiter Wrap` : https://jup.ag/\n\n![](readme/jupiterwrap.png)\n\n## CONFIG\n1. Configure the script by updating `.env.example` file (**remove the .example from the file name when done**).\n2. `PRIVATE_KEY` (your wallet private key)\n3. `RPC_ENDPOINT` (https RPC endpoint) \n4. `RPC_WEBSOCKET_ENDPOINT` (websocket RPC endpoint)\n5. `QUOTE_MINT` (Use WSOL by default)\n6. `QUOTE_AMOUNT` (amount used to buy each new token)\n7. `COMMITMENT_LEVEL` (No modification required)\n8. `CHECK_IF_IS_BURNED` (liquidity burn check)\n9. `CHECK_IF_IS_LOCKED` (liquidity lock check)\n10. `USE_SNIPE_LIST` (buy only tokens listed in snipe-list.txt)\n11. `SNIPE_LIST_REFRESH_INTERVAL` (how often snipe list should be refreshed in milliseconds)\n12. `CHECK_IF_MINT_IS_RENOUNCED` (script will buy only if mint is renounced)\n13. `MIN_POOL_SIZE` (script will buy only if pool size is greater than specified amount)\n14. `TAKE_PROFIT=50` (in %)\n15. `STOP_LOSS=30` (in %)\n16. `BIRDEYE_API_KEY=` (TP/SL, Burn/Lock) You can use the default link in the .env file, it works fine and does not need to be changed. Go here if you want to generate it yourself : https://docs.birdeye.so/docs/authentication-api-keys\n\n**Don't forget to check Birdeye API, if API key is not working, some bot functions such as TP/SL, Min/Max Liquidity etc may not work correctly or not work at all. If you follow the instructions there should be no errors.\n\n![](readme/birdeye.png)\n\n![](readme/env.png)\n  \n## INSTALL\n1. Install dependencies by typing: `npm install`\n2. Run the script by typing: `npm run buy` in terminal\n\n![](readme/preview.png)\n\n## TAKE PROFIT\n\n\u003e [!NOTE]\n\u003e By default, 50 % \n\n## STOP LOSS\n\n\u003e [!NOTE]\n\u003e By default, 30 %\n\n## AUTO SELL\nBy default, auto sell is enabled. If you want to disable it, you need to:\n1. Change variable `AUTO_SELL` to `false`\n2. Update `MAX_SELL_RETRIES` to set the maximum number of retries for selling token\n3. Update `AUTO_SELL_DELAY` to the number of milliseconds you want to wait before selling the token (this will sell the token after the specified delay. (+- RPC node speed)).\n\nIf you set AUTO_SELL_DELAY to 0, token will be sold immediately after it is bought.\nThere is no guarantee that the token will be sold at a profit or even sold at all. The developer is not responsible for any losses incurred by using this feature.\n\n![](readme/token.png)\n\n## SNIPE LIST\nBy default, script buys each token which has a new liquidity pool created and open for trading.\nThere are scenarios when you want to buy one specific token as soon as possible during the launch event.\nTo achieve this, you'll have to use snipe list.\n1. Change variable `USE_SNIPE_LIST` to `true` \n2. Add token mint addresses you wish to buy in `snipe-list.txt` file (add each address as a new line).\n\nThis will prevent script from buying everything, and instead it will buy just listed tokens.\nYou can update the list while script is running. Script will check for new values in specified interval (`SNIPE_LIST_REFRESH_INTERVAL`).\n\nPool must not exist before the script starts.\nIt will buy only when new pool is open for trading. If you want to buy token that will be launched in the future, make sure that script is running before the launch.\n\n![](readme/snipelist.png)\n\n\n## COMMON ISSUES\n\n\u003e [!IMPORTANT]\n\u003e If you have an error which is not listed here, please create a new issue in this repository.\n\u003e To collect more information on an issue, please change `LOG_LEVEL` to `debug`.\n\u003e \n\u003e ### EMPTY TRANSACTION\n\u003e If you see empty transactions on SolScan most likely fix is to change commitment level to `finalized`.\n\u003e \n\u003e ### UNSOPPORTED RPC NODE\n\u003e If you see following error in your log file:  \n\u003e `Error: 410 Gone:  {\"jsonrpc\":\"2.0\",\"error\":{\"code\": 410, \"message\":\"The RPC call or parameters have been disabled.\"}, \"id\": \"986f3599-b2b7-47c4-b951-074c19842bad\"}`  \n\u003e It means your RPC node doesn't support methods needed to execute script.\n\u003e FIX: Change your RPC node. You can use Shyft, Helius or Quicknode. \n\u003e \n\u003e ### NO TOKEN ACCOUNT\n\u003e If you see following error in your log file:  \n\u003e `Error: No SOL token account found in wallet:`  \n\u003e it means that wallet you provided doesn't have USDC/WSOL token account.\n\u003e FIX: Go to dex and swap some SOL to USDC/WSOL. When you swap sol to wsol you should see it in wallet.\n\n## CONTACT\n\nThe program has undergone multiple audits and tests, demonstrating strong profitability. If you have any suggestions, please contact:\n\nDiscord: `prin_crypto`\n\nSupport this project: `HHC2fZ9rPzi9MeHb5KPCXSoHM1LXCuyFnmjxCpVJe8Ym`\n\n## DISCLAIMER\n\n\u003e [!IMPORTANT]\n\u003e Use this script at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincrypto%2Fsolana-pumpfun-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprincrypto%2Fsolana-pumpfun-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprincrypto%2Fsolana-pumpfun-bot/lists"}