@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 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