midnight-wallet-cli 0.2.1 → 0.2.3

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/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # midnight-wallet-cli
2
2
 
3
+ ![midnight-wallet-cli demo](https://raw.githubusercontent.com/nel349/midnight-wallet-cli-hub/main/docs/midnight-cli-gif.gif)
4
+
3
5
  [![npm version](https://badge.fury.io/js/midnight-wallet-cli.svg)](https://www.npmjs.com/package/midnight-wallet-cli)
4
6
  [![npm downloads](https://img.shields.io/npm/dm/midnight-wallet-cli)](https://npm-stat.com/charts.html?package=midnight-wallet-cli)
5
7
  [![License](https://img.shields.io/npm/l/midnight-wallet-cli)](https://www.apache.org/licenses/LICENSE-2.0)
@@ -36,37 +38,49 @@ This installs two commands: `midnight` (or `mn` for short) and `midnight-wallet-
36
38
  | `midnight inspect-cost` | Display current block cost limits |
37
39
  | `midnight serve` | Start DApp Connector server (WebSocket JSON-RPC) |
38
40
  | `midnight config get/set` | Manage persistent config (network, wallet, endpoints) |
41
+ | `midnight cache clear` | Clear wallet state cache |
39
42
  | `midnight localnet up/stop/down/status` | Manage a local Midnight network via Docker |
40
43
  | `midnight help [command]` | Show usage for all or a specific command |
41
44
 
42
45
  ## Quick Start
43
46
 
44
- ### Preprod (testnet)
47
+ ### Local development (undeployed)
45
48
 
46
49
  ```bash
47
- # Generate a wallet on preprod
48
- midnight wallet generate alice --network preprod
50
+ # 1. Start local network (node, indexer, proof server)
51
+ midnight localnet up
52
+
53
+ # 2. Create a wallet and set the network
54
+ midnight wallet generate alice
55
+ midnight config set network undeployed
56
+
57
+ # 3. Fund your wallet and register dust (needed for fees)
58
+ midnight airdrop 1000
59
+ midnight dust register
49
60
 
50
- # Check balance
61
+ # 4. Check balance and transfer
51
62
  midnight balance
63
+ midnight transfer mn_addr_undeployed1... 100
52
64
  ```
53
65
 
54
- ### Local development
66
+ ### Preprod / Preview (testnet)
55
67
 
56
68
  ```bash
57
- # Start local network
58
- midnight localnet up
69
+ # 1. Create a wallet and set the network
70
+ midnight wallet generate alice
71
+ midnight config set network preprod # or: preview
59
72
 
60
- # Generate a wallet
61
- midnight wallet generate dev --network undeployed
73
+ # 2. Get test tokens from the faucet
74
+ # preprod: https://faucet.preprod.midnight.network/
75
+ # preview: https://faucet.preview.midnight.network/
76
+ # Paste your address from: midnight wallet info alice
62
77
 
63
- # Airdrop tokens and register dust
64
- midnight airdrop 1000
78
+ # 3. Register dust (needed for fees)
65
79
  midnight dust register
66
80
 
67
- # Check balance and transfer
81
+ # 4. Check balance and transfer
68
82
  midnight balance
69
- midnight transfer mn_addr_undeployed1... 100
83
+ midnight transfer mn_addr_preprod1... 100
70
84
  ```
71
85
 
72
86
  ## Supported Networks
@@ -208,7 +222,7 @@ Add to `~/.codeium/windsurf/mcp_config.json`:
208
222
 
209
223
  ### Available MCP Tools
210
224
 
211
- Once connected, your AI agent gets access to 22 tools:
225
+ Once connected, your AI agent gets access to 24 tools:
212
226
 
213
227
  | Tool | Description |
214
228
  |------|-------------|
@@ -229,6 +243,8 @@ Once connected, your AI agent gets access to 22 tools:
229
243
  | `midnight_dust_status` | Check dust status |
230
244
  | `midnight_config_get` | Read config value |
231
245
  | `midnight_config_set` | Write config value |
246
+ | `midnight_config_unset` | Remove config value |
247
+ | `midnight_cache_clear` | Clear wallet state cache |
232
248
  | `midnight_localnet_up` | Start local network |
233
249
  | `midnight_localnet_stop` | Stop local network |
234
250
  | `midnight_localnet_down` | Remove local network |