Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
dfc1aa2
converted src/helpers/*.js to .ts
cameraMeasurementTech Aug 23, 2024
6b2070c
convert src/jupiter/*.js & src/Transactions/*.js to .ts
cameraMeasurementTech Aug 23, 2024
67ced21
converted src/Token/*.js to .ts
cameraMeasurementTech Aug 23, 2024
c29063f
converted src/raydium/*.js to .ts
cameraMeasurementTech Aug 23, 2024
66c635d
Update README.md
cameraMeasurementTech Aug 23, 2024
be88676
Update README.md
cameraMeasurementTech Aug 23, 2024
4b1281b
converted src/Trading_dev/**/*.js to .ts
cameraMeasurementTech Aug 23, 2024
e292488
Merge branch 'typescript-main' of https://github.com/outsmartchad/sol…
cameraMeasurementTech Aug 23, 2024
eb99f18
converted src/pumpfunsdk/pumpdotfun-sdk/src/*.js to .ts
cameraMeasurementTech Aug 23, 2024
cbc9403
changed to not load jup token in src/raydium/raydium_config.ts
cameraMeasurementTech Aug 23, 2024
33b6416
tested src/raydium/
cameraMeasurementTech Aug 23, 2024
b6136f8
tested src/jupiter/
cameraMeasurementTech Aug 23, 2024
6a8ae91
changed tsconfig.json
cameraMeasurementTech Aug 23, 2024
9eb16b6
Update README.md
cameraMeasurementTech Aug 24, 2024
041cdf6
converted src/Memecoin_dev/**/*.js to .ts
cameraMeasurementTech Aug 24, 2024
c07d49d
Merge branch 'typescript-main' of https://github.com/outsmartchad/sol…
cameraMeasurementTech Aug 24, 2024
e900ea4
add fetch price method using meteora sdk
cameraMeasurementTech Aug 27, 2024
41e8761
Update README.md
cameraMeasurementTech Aug 27, 2024
ee2f680
meteora swap cli done.
cameraMeasurementTech Aug 27, 2024
39d3815
Merge branch 'typescript-main' of https://github.com/outsmartchad/sol…
cameraMeasurementTech Aug 27, 2024
5ccec9e
Added method to fetch dlmm pool's marketcap, volume, sol in pool
cameraMeasurementTech Aug 28, 2024
9839b19
moved meteora&orca dir under the src/
cameraMeasurementTech Aug 28, 2024
dc64148
comment testing
cameraMeasurementTech Aug 28, 2024
8f4b624
added method to fetch whirl pool
cameraMeasurementTech Aug 28, 2024
9d18840
added method to fetch whirl pool
cameraMeasurementTech Aug 28, 2024
82d61fb
orca swap cli done.
cameraMeasurementTech Aug 28, 2024
0e6a616
added method to fetch number of sol in whirl pool
cameraMeasurementTech Aug 28, 2024
6d3f73b
added method to fetch number of sol in whirl pool
cameraMeasurementTech Aug 28, 2024
d5de66d
added method to fetch price of whirl pool
cameraMeasurementTech Aug 28, 2024
bf0d71d
added method to fetch the market cap of a token
cameraMeasurementTech Aug 28, 2024
cf776ff
added README.md for test in raydium/
cameraMeasurementTech Aug 29, 2024
afcdc78
added something in README.md of raydium/
cameraMeasurementTech Aug 29, 2024
a07c6ef
Update README.md
cameraMeasurementTech Aug 29, 2024
fd8ab33
Wrote README.md on how to use functions in raydium/
cameraMeasurementTech Aug 29, 2024
2e0aaac
Merge branch 'typescript-main' of https://github.com/outsmartchad/sol…
cameraMeasurementTech Aug 29, 2024
ea04954
Wrote README.md on how to use functions in raydium/
cameraMeasurementTech Aug 29, 2024
4c14637
added readme.md in every dir
cameraMeasurementTech Aug 29, 2024
345dc07
added Disclaimer to README.md
cameraMeasurementTech Aug 29, 2024
f0df384
release the beta of grpc pump.fun sniper & copy bot
cameraMeasurementTech Aug 31, 2024
342704f
Update README.md
cameraMeasurementTech Aug 31, 2024
2573fb7
fix error in grpc-copy-bot/
cameraMeasurementTech Aug 31, 2024
a97cf9a
Merge branch 'typescript-main' of https://github.com/outsmartchad/sol…
cameraMeasurementTech Aug 31, 2024
f41eb3d
improve the copy-trade
cameraMeasurementTech Aug 31, 2024
5b87f4b
add command.sh in src/Trading_dev/grpc-pf-sniper/
cameraMeasurementTech Aug 31, 2024
904f834
add README.md in src/Trading_dev/grpc-copy-bot/
cameraMeasurementTech Aug 31, 2024
84271b3
add README.md in src/Trading_dev/grpc-copy-bot/
cameraMeasurementTech Aug 31, 2024
6f52cc7
Update README.md
cameraMeasurementTech Aug 31, 2024
24fcfba
add module to take profit and stop loss in src/Trading_dev/
cameraMeasurementTech Aug 31, 2024
aed3832
Merge branch 'typescript-main' of https://github.com/outsmartchad/sol…
cameraMeasurementTech Aug 31, 2024
41a2882
Update README.md
cameraMeasurementTech Aug 31, 2024
740220e
Update README.md
cameraMeasurementTech Aug 31, 2024
7a912de
Update README.md
cameraMeasurementTech Aug 31, 2024
876bbde
Update README.md
cameraMeasurementTech Aug 31, 2024
8e2c789
Update README.md
cameraMeasurementTech Aug 31, 2024
a04c35e
declare node.js version properly
cameraMeasurementTech Sep 1, 2024
0b19e3b
Improve README.me and fix some markdown errors
cameraMeasurementTech Sep 1, 2024
4ce83f3
remove unused file
cameraMeasurementTech Sep 1, 2024
eb5eab6
Merge pull request #26 from maxktz/typescript-main
cameraMeasurementTech Sep 1, 2024
bade7ce
Revert "declare node.js version properly + Improve README.me and fix …
cameraMeasurementTech Sep 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 32 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@

- Create your own Solana **_SPL tokens_** on mainnet | Pump.fun

- Swap tokens on top of Raydium, Orca, Meteora, and pump.fun
- Swap tokens on Raydium, Orca, Meteora, and pump.fun

- Predefined Jito tips and Priority fee
- land transactions faster using Jito/bloXroute

- Fastest Copy Trade Program
- Fetch the real-time lp-burn percentage, pool reserve and market cap of any liquidity pool

- **_Got everything needed for any developer to create their own trading bot_**
- fixed % tp/sl module

- Open-Source grpc pump.fun sniper bot (0-1x seconds latency) [here](https://github.com/outsmartchad/solana-trading-cli/tree/typescript-main/src/Trading_dev/grpc-pf-sniper)

- Open-Source grpc copy bot [here](https://github.com/outsmartchad/solana-trading-cli/tree/typescript-main/src/Trading_dev/grpc-copy-bot)

- **_Got everything needed to create your own trading bot_**

## Credits
- https://github.com/raydium-io/raydium-sdk-V2
Expand All @@ -24,8 +30,7 @@
3. `nvm install v22.2.0`
4. `nvm use v22.2.0`
5. `npm install`
6. `node help.js `(to see commands or read cli_doc.txt file)
7. also see the command examples in examples/
6. also see the command examples in examples/

### Prerequisites 🚨

Expand Down Expand Up @@ -68,80 +73,80 @@
1. Specify the token symbol, name, mint keypair(optional, will help u to generate), supply, decimals, path to metadata json file, path to image file, the cluster you want to use, and the file type(png, jpg, jpeg).

```
node create --payer <PATH_TO_SECRET_KEY> --symbol <TOKEN_SYMBOL> --token_name <TOKEN_NAME> --mint <PATH_TO_MINT_KEYPAIR> --supply <SUPPLY_OF_TOKEN> --decimals <DECIMALS> --metadata <PATH_METADATA_JSON> --image <PATH_TO_IMAGE> --cluster <CLUSTER> --priority-fee <PRIORITY_FEE> --file_type <FILE_TYPE>
ts-node create --payer <PATH_TO_SECRET_KEY> --symbol <TOKEN_SYMBOL> --token_name <TOKEN_NAME> --mint <PATH_TO_MINT_KEYPAIR> --supply <SUPPLY_OF_TOKEN> --decimals <DECIMALS> --metadata <PATH_METADATA_JSON> --image <PATH_TO_IMAGE> --cluster <CLUSTER> --priority-fee <PRIORITY_FEE> --file_type <FILE_TYPE>
```

2. Specify the token address, the percentage of the token you want to burn and the cluster you want to use.

```
node burn --payer <PATH_TO_SECRET_KEY> --token_address <ADDRESS_TOKEN> --percentage <BURN_PERCENTAGE> --cluster <CLUSTER>
ts-node burn --payer <PATH_TO_SECRET_KEY> --token_address <ADDRESS_TOKEN> --percentage <BURN_PERCENTAGE> --cluster <CLUSTER>
```

3. Specify the token address and the cluster you want to use.

```
node revoke_authority --payer <PATH_TO_SECRET_KEY> --mint_address <ADDRESS_TOKEN> --cluster <CLUSTER> --mint --freeze
ts-node revoke_authority --payer <PATH_TO_SECRET_KEY> --mint_address <ADDRESS_TOKEN> --cluster <CLUSTER> --mint --freeze
```

4. Specify the token address you want to query and the cluster for boosting the volume of the token.

```
node boost_volume --token_address <TOKEN_ADDRESS> --payer <PATH_TO_SECRET_KEY> --cluster <CLUSTER> --sol_per_order <SOL_PER_ORDER>
ts-node boost_volume --token_address <TOKEN_ADDRESS> --payer <PATH_TO_SECRET_KEY> --cluster <CLUSTER> --sol_per_order <SOL_PER_ORDER>

```

5. Specify the token address, the amount of Sol you want to swap, and the cluster you want to use.

```
node buy --payer <PATH_TO_SECRET_KEY> --token_address <ADDRESS_TOKEN> --sol <NUMBER_OF_SOL> --cluster <CLUSTER>
ts-node buy --payer <PATH_TO_SECRET_KEY> --token_address <ADDRESS_TOKEN> --sol <NUMBER_OF_SOL> --cluster <CLUSTER>
```

6. Specify the token address, the percentage of the token you want to sell, and the cluster you want to use.

```
node sell --payer <PATH_TO_SECRET_KEY> --token_address <ADDRESS_TOKEN> --percentage <SELL_PERCENTAGE> --cluster <CLUSTER>
ts-node sell --payer <PATH_TO_SECRET_KEY> --token_address <ADDRESS_TOKEN> --percentage <SELL_PERCENTAGE> --cluster <CLUSTER>
```

7. Specify the token address, the pool id(optional, will help to find the pool with the most liquidity using the given token address), the amount of Sol you want to add, and the cluster you want to use.

```
node add_pool --payer <PATH_WALLET> --token_address <ADDRESS_TOKEN> --pool_id <POOL_ID> --sol <NUMBER_OF_SOL> --cluster <CLUSTER> --priority_fee <PRIORITY_FEE>
ts-node add_pool --payer <PATH_WALLET> --token_address <ADDRESS_TOKEN> --pool_id <POOL_ID> --sol <NUMBER_OF_SOL> --cluster <CLUSTER> --priority_fee <PRIORITY_FEE>
```

8. Specify the token address, the percentage of the LP token you want to remove(1=1%), and the cluster you want to use.

```
node remove_pool --payer <PATH_PAYER> --token_address <TOKEN_ADDRESS> --percentage <LP_TOKEN_PERCENTAGE> --cluster <CLUSTER>
ts-node remove_pool --payer <PATH_PAYER> --token_address <TOKEN_ADDRESS> --percentage <LP_TOKEN_PERCENTAGE> --cluster <CLUSTER>
```
9. wrap your sol to wsol.

```
node wrap_sol.js --size <size>
ts-node wrap_sol.js --size <size>
```

10. unwrap your wsol to sol.
```
node unwrap_sol.js
ts-node unwrap_sol.js
```

### Pump.fun commands

9. Specify the path to your mint keypair, the amount of Sol you want to buy, the name of the token, the symbol of the token, the description of the token, the telegram link, the twitter link, the website link, and the image file path.

```
node createAndBuy --pathToMintKeypair <PATH_TO_MINT_KEYPAIR> --sol <NUMBER_OF_SOL> --name <TOKEN_NAME> --symbol <TOKEN_SYMBOL> --description <TOKEN_DESCRIPTION> --telegram <TELEGRAM_LINK> --twitter <TWITTER_LINK> --website <WEBSITE_LINK> --file <IMAGE_FILE_PATH>
ts-node createAndBuy --pathToMintKeypair <PATH_TO_MINT_KEYPAIR> --sol <NUMBER_OF_SOL> --name <TOKEN_NAME> --symbol <TOKEN_SYMBOL> --description <TOKEN_DESCRIPTION> --telegram <TELEGRAM_LINK> --twitter <TWITTER_LINK> --website <WEBSITE_LINK> --file <IMAGE_FILE_PATH>
```

10. Specify the token address, the sol you want to buy

```
node buy --token_address <ADDRESS_TOKEN> --sol <NUMBER_OF_SOL>
ts-node buy --token_address <ADDRESS_TOKEN> --sol <NUMBER_OF_SOL>
```

11. Specify the token address, the percentage of the token you want to sell

```
node sell --token_address <ADDRESS_TOKEN> --percentage <SELL_PERCENTAGE>
ts-node sell --token_address <ADDRESS_TOKEN> --percentage <SELL_PERCENTAGE>
```
# Code Usage </>

Expand Down Expand Up @@ -312,6 +317,14 @@ node sell --token_address <ADDRESS_TOKEN> --percentage <SELL_PERCENTAGE>
- ``` git pull --rebase # Pull the latest changes```
- ``` git stash pop # Apply Your stashed changes```

## Disclaimer

This software is provided "as is," without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

**Use at your own risk.** The authors take no responsibility for any harm or damage caused by the use of this software. Users are responsible for ensuring the suitability and safety of this software for their specific use cases.

By using this software, you acknowledge that you have read, understood, and agree to this disclaimer.

### If you think this project is useful, please give us a star🌟, it will help us a lot.

### Discord channel: https://discord.gg/hFhQeBCqWX
Expand Down
173 changes: 162 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@
"pino-pretty": "^10.3.1",
"pino-std-serializers": "^6.2.2",
"pumpdotfun-sdk": "^1.3.2",
"random-js": "^2.1.0"
"random-js": "^2.1.0",
"rpc-websockets": "7.10.0",
"@triton-one/yellowstone-grpc": "^0.4.0",
"jito-ts": "^4.0.0"
},
"devDependencies": {
"typescript": "^5.5.4"
}
}
}
Loading