Getting solana-trading-bot on IPFS and Solana blockchain

Filip Dunder 13dc6315e5 feat: disable file logging 1 year ago
common d22b1dc261 feat: create buy script for solana tokens 1 year ago
liquidity 2ad4f93e84 feat: add console logging 1 year ago
market d22b1dc261 feat: create buy script for solana tokens 1 year ago
utils d22b1dc261 feat: create buy script for solana tokens 1 year ago
.gitignore d22b1dc261 feat: create buy script for solana tokens 1 year ago
.prettierrc d22b1dc261 feat: create buy script for solana tokens 1 year ago
LICENSE.md d22b1dc261 feat: create buy script for solana tokens 1 year ago
README.md 2fdced90ff docs: update readme 1 year ago
buy.ts 13dc6315e5 feat: disable file logging 1 year ago
package-lock.json 2ad4f93e84 feat: add console logging 1 year ago
package.json 2ad4f93e84 feat: add console logging 1 year ago
tsconfig.json d22b1dc261 feat: create buy script for solana tokens 1 year ago
wallet.json d22b1dc261 feat: create buy script for solana tokens 1 year ago

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 tokens immediately after liquidity pool is created. Script listens to new raydium USDC pools and buys token for a fixed amount in USDC.

Setup

In order to run script you need to:

  • Create new empty solana wallet
  • Transfer some SOL to it.
  • Convert some SOL to USDC.
    • We need USDC because script is buying USDC pairs.
  • Export wallet private key and paste it in: wallet.json
  • 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
  • Run the script