Getting solana-trading-bot on IPFS and Solana blockchain

Al366io 35a6e1a19a Update wallet configuration and dependencies il y a 1 an
common d22b1dc261 feat: create buy script for solana tokens il y a 1 an
liquidity 2ad4f93e84 feat: add console logging il y a 1 an
market d22b1dc261 feat: create buy script for solana tokens il y a 1 an
utils d22b1dc261 feat: create buy script for solana tokens il y a 1 an
.env.copy 35a6e1a19a Update wallet configuration and dependencies il y a 1 an
.gitignore d22b1dc261 feat: create buy script for solana tokens il y a 1 an
.prettierrc d22b1dc261 feat: create buy script for solana tokens il y a 1 an
LICENSE.md d22b1dc261 feat: create buy script for solana tokens il y a 1 an
README.md 35a6e1a19a Update wallet configuration and dependencies il y a 1 an
buy.ts 35a6e1a19a Update wallet configuration and dependencies il y a 1 an
package-lock.json 35a6e1a19a Update wallet configuration and dependencies il y a 1 an
package.json 35a6e1a19a Update wallet configuration and dependencies il y a 1 an
tsconfig.json d22b1dc261 feat: create buy script for solana tokens il y a 1 an

README.md

Solana Sniper Bot

Proof of concept - 2023-04-20

This code is written as proof of concept for demonstrating how we can buy new tokens immediately after liquidity pool is created.

Script listens to new raydium USDC pools and buys token for a fixed amount in USDC. Depending on speed of RPC node, the purchase usually happens before token is available on Raydium for swapping.

Setup

In order to run the script you need to:

  • Create a new empty Solana wallet
  • Transfer some SOL to it.
  • Convert some SOL to USDC.
    • We need USDC because the script is buying USDC pairs.
  • Set your Private Key in the .env file (remove the .copy from the file name when done)
  • Modify the buy.ts file and enter your RPC endpoint
    • Find line where it says: ENTER RPC ENDPOINT HERE and ENTER RPC WEBSOCKET ENDPOINT HERE and replace it with your endpoint
  • Install dependencies by typing: npm install
  • Run the script by typing: npm run buy in terminal