@zoidz123/raydium-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +74 -0
- package/dist/commands/clmm/index.js +2118 -0
- package/dist/commands/config/index.js +113 -0
- package/dist/commands/cpmm/index.js +480 -0
- package/dist/commands/launchpad/index.js +1677 -0
- package/dist/commands/pools/index.js +81 -0
- package/dist/commands/swap/index.js +490 -0
- package/dist/commands/tokens/index.js +93 -0
- package/dist/commands/wallet/index.js +267 -0
- package/dist/index.js +43 -0
- package/dist/lib/clmm-utils.js +296 -0
- package/dist/lib/codex-sdk.js +17 -0
- package/dist/lib/config-manager.js +67 -0
- package/dist/lib/connection.js +9 -0
- package/dist/lib/ipfs.js +117 -0
- package/dist/lib/output.js +59 -0
- package/dist/lib/paths.js +11 -0
- package/dist/lib/prompt.js +58 -0
- package/dist/lib/raydium-client.js +23 -0
- package/dist/lib/token-price.js +45 -0
- package/dist/lib/wallet-manager.js +173 -0
- package/dist/types/config.js +11 -0
- package/package.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 zoidz123
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# Raydium CLI
|
|
2
|
+
|
|
3
|
+
Minimal TypeScript CLI for Raydium on Solana (MVP).
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install
|
|
9
|
+
npm run build
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Run directly (ts-node):
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
npm run dev -- --help
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Run compiled binary:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
node dist/index.js --help
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Config
|
|
25
|
+
|
|
26
|
+
Config file is stored at `~/.raydium-cli/config.json`.
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
raydium config init
|
|
30
|
+
raydium config set rpc-url https://api.mainnet-beta.solana.com
|
|
31
|
+
raydium config get
|
|
32
|
+
|
|
33
|
+
Priority fee is specified in SOL and converted to microLamports internally.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Wallets
|
|
37
|
+
|
|
38
|
+
Wallets are stored at `~/.raydium-cli/wallets` and encrypted with AES-256-GCM.
|
|
39
|
+
Seed phrases are only shown at creation.
|
|
40
|
+
Set `CODEX_API_KEY` in your environment to enable portfolio balances from Codex.
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
raydium wallet create mywallet
|
|
44
|
+
raydium wallet import mywallet --private-key <base58>
|
|
45
|
+
raydium wallet list
|
|
46
|
+
raydium wallet use mywallet
|
|
47
|
+
raydium wallet balance
|
|
48
|
+
raydium wallet export mywallet
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Tokens
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
raydium tokens list --search usdc
|
|
55
|
+
raydium tokens info <mint>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Pools
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
raydium pools list --type standard --limit 20
|
|
62
|
+
raydium pools list --mint-a <mint> --mint-b <mint>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Swap
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
raydium swap --pool-id <pool> --input-mint <mint> --amount 1 --slippage 0.5 --priority-fee 0.000005
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Priority fee is specified in SOL.
|
|
72
|
+
|
|
73
|
+
Use `--json` for JSON output.
|
|
74
|
+
# raydium-cli
|