Getting solana-trading-bot on IPFS and Solana blockchain
|
1 éve | |
---|---|---|
common | 1 éve | |
liquidity | 1 éve | |
market | 1 éve | |
utils | 1 éve | |
.gitignore | 1 éve | |
.prettierrc | 1 éve | |
LICENSE.md | 1 éve | |
README.md | 1 éve | |
buy.ts | 1 éve | |
package-lock.json | 1 éve | |
package.json | 1 éve | |
tsconfig.json | 1 éve | |
wallet.json | 1 éve |
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.
In order to run the script you need to:
wallet.json
ENTER RPC ENDPOINT HERE
and ENTER RPC WEBSOCKET ENDPOINT HERE
and replace it with your endpointnpm install
npm run buy
in terminal