@solana-compass/cli 0.2.0 → 0.2.1
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/.claude-plugin/plugin.json +6 -0
- package/README.md +39 -77
- package/package.json +4 -2
- package/skills/solana-payments-wallets-trading/SKILL.md +190 -0
- package/skills/solana-payments-wallets-trading/references/json-output-format.md +132 -0
- package/skills/solana-payments-wallets-trading/references/lending-commands.md +174 -0
- package/skills/solana-payments-wallets-trading/references/portfolio-commands.md +128 -0
- package/skills/solana-payments-wallets-trading/references/staking-commands.md +150 -0
- package/skills/solana-payments-wallets-trading/references/trading-commands.md +207 -0
- package/skills/solana-payments-wallets-trading/references/troubleshooting.md +158 -0
- package/skills/solana-payments-wallets-trading/references/wallet-commands.md +150 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# Wallet Commands Reference
|
|
2
|
+
|
|
3
|
+
## Create a Wallet
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
sol wallet create # auto-named (wallet-1, wallet-2, ...)
|
|
7
|
+
sol wallet create --name trading # pick a name
|
|
8
|
+
sol wallet create --name bot --count 5 # batch-create 5 wallets
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Creates a new Ed25519 keypair and stores it as a JSON key file in
|
|
12
|
+
`~/.sol/wallets/<name>.json` (Solana CLI compatible format, chmod 600).
|
|
13
|
+
|
|
14
|
+
The first wallet created becomes the default for all commands.
|
|
15
|
+
|
|
16
|
+
## List Wallets
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
sol wallet list # all wallets with SOL balances
|
|
20
|
+
sol wallet list --label trading # filter by label
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Shows wallet name, address, SOL balance, and whether it's the default.
|
|
24
|
+
Hints at `sol wallet balance <name>` for full token breakdown.
|
|
25
|
+
|
|
26
|
+
## Check Balances
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
sol wallet balance # default wallet, all tokens + USD
|
|
30
|
+
sol wallet balance trading # specific wallet
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Displays every token held with current USD values. Tokens below the
|
|
34
|
+
dust threshold ($0.0001) are grouped as dust.
|
|
35
|
+
|
|
36
|
+
## Import an Existing Wallet
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sol wallet import --solana-cli # from ~/.config/solana/id.json
|
|
40
|
+
sol wallet import ./keypair.json --name cold
|
|
41
|
+
sol wallet import /path/to/key.json
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Copies the key file into `~/.sol/wallets/`. The `--solana-cli` flag
|
|
45
|
+
imports from the default Solana CLI keypair location.
|
|
46
|
+
|
|
47
|
+
## Export / Show Key File Path
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
sol wallet export main
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Prints the file system path to the key file. Does NOT print the
|
|
54
|
+
private key itself.
|
|
55
|
+
|
|
56
|
+
## Remove a Wallet
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
sol wallet remove old-wallet
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Removes the wallet from the registry. The key file is renamed with a
|
|
63
|
+
`.deleted` suffix (not permanently deleted) so it can be recovered.
|
|
64
|
+
|
|
65
|
+
## Set Default Wallet
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
sol wallet set-default trading
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Changes which wallet is used when `--wallet` is not specified.
|
|
72
|
+
|
|
73
|
+
## Labels
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
sol wallet label main --add trading # add a label
|
|
77
|
+
sol wallet label main --add defi --add bot # multiple labels
|
|
78
|
+
sol wallet label main --remove trading # remove a label
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Labels are freeform tags for organizing wallets. Use them with
|
|
82
|
+
`sol wallet list --label <label>` to filter.
|
|
83
|
+
|
|
84
|
+
## Transaction History
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
sol wallet history # recent transactions
|
|
88
|
+
sol wallet history --limit 20 # more results
|
|
89
|
+
sol wallet history --type swap # filter by type (swap, send, stake, lend)
|
|
90
|
+
sol wallet history trading # specific wallet
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Shows transactions from the local log — type, tokens, amounts, USD
|
|
94
|
+
values at execution time, and timestamps.
|
|
95
|
+
|
|
96
|
+
## Fund via Fiat Onramp
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
sol wallet fund # default wallet, default amount
|
|
100
|
+
sol wallet fund --amount 50 # specify USD amount
|
|
101
|
+
sol wallet fund trading --provider moonpay
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Generates a URL to purchase SOL via a fiat onramp provider. Opens
|
|
105
|
+
in your browser.
|
|
106
|
+
|
|
107
|
+
## Global Wallet Flag
|
|
108
|
+
|
|
109
|
+
Any command that operates on a wallet accepts `--wallet <name-or-address>`:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
sol token swap 50 usdc bonk --wallet trading
|
|
113
|
+
sol stake new 10 --wallet cold
|
|
114
|
+
sol lend deposit 100 usdc --wallet defi
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## JSON Output
|
|
118
|
+
|
|
119
|
+
All wallet commands support `--json`:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
sol wallet list --json
|
|
123
|
+
sol wallet balance --json
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Example: `sol wallet list --json`
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
{
|
|
130
|
+
"ok": true,
|
|
131
|
+
"data": {
|
|
132
|
+
"wallets": [
|
|
133
|
+
{
|
|
134
|
+
"name": "main",
|
|
135
|
+
"address": "7nY...xyz",
|
|
136
|
+
"sol_balance": 12.5,
|
|
137
|
+
"is_default": true,
|
|
138
|
+
"labels": ["trading"]
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"meta": { "elapsed_ms": 320 }
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Data Storage
|
|
147
|
+
|
|
148
|
+
- Key files: `~/.sol/wallets/<name>.json`
|
|
149
|
+
- Wallet registry: `~/.sol/data.db` (SQLite)
|
|
150
|
+
- Config: `~/.sol/config.toml`
|