midnight-wallet-cli 0.1.3 → 0.1.4
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 +14 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://www.typescriptlang.org/)
|
|
7
7
|
[](https://github.com/nel349/midnight-wallet-cli/actions/workflows/ci.yml)
|
|
8
8
|
|
|
9
|
-
A standalone CLI wallet for the Midnight blockchain. Manage wallets, check balances, transfer NIGHT tokens, and run a local
|
|
9
|
+
A standalone CLI wallet for the Midnight blockchain. Manage wallets, check balances, transfer NIGHT tokens, and run a local network — all from the terminal.
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ A standalone CLI wallet for the Midnight blockchain. Manage wallets, check balan
|
|
|
14
14
|
npm install -g midnight-wallet-cli
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
This installs
|
|
17
|
+
This installs two commands: `midnight` (or `mn` for short) and `midnight-wallet-mcp`.
|
|
18
18
|
|
|
19
19
|
## Commands
|
|
20
20
|
|
|
@@ -24,7 +24,7 @@ This installs three commands: `midnight` (or `mn` for short) and `midnight-walle
|
|
|
24
24
|
| `midnight info` | Display wallet address, network, creation date |
|
|
25
25
|
| `midnight balance [address]` | Check unshielded NIGHT balance |
|
|
26
26
|
| `midnight transfer <to> <amount>` | Send NIGHT tokens to another address |
|
|
27
|
-
| `midnight airdrop <amount>` | Fund wallet from genesis (
|
|
27
|
+
| `midnight airdrop <amount>` | Fund wallet from genesis (undeployed network only) |
|
|
28
28
|
| `midnight dust register` | Register NIGHT UTXOs for dust (fee token) generation |
|
|
29
29
|
| `midnight dust status` | Check dust registration status and balance |
|
|
30
30
|
| `midnight address --seed <hex>` | Derive an address from a seed |
|
|
@@ -37,29 +37,28 @@ This installs three commands: `midnight` (or `mn` for short) and `midnight-walle
|
|
|
37
37
|
## Quick Start
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
+
# Start local network
|
|
41
|
+
midnight localnet up
|
|
42
|
+
|
|
40
43
|
# Generate a wallet
|
|
41
|
-
midnight generate --network
|
|
44
|
+
midnight generate --network undeployed
|
|
45
|
+
|
|
46
|
+
# Airdrop tokens and register dust
|
|
47
|
+
midnight airdrop 1000
|
|
48
|
+
midnight dust register
|
|
42
49
|
|
|
43
50
|
# Check balance
|
|
44
51
|
midnight balance
|
|
45
52
|
|
|
46
53
|
# Transfer NIGHT
|
|
47
|
-
midnight transfer
|
|
48
|
-
|
|
49
|
-
# Local devnet: start network, airdrop, register dust
|
|
50
|
-
midnight localnet up
|
|
51
|
-
midnight generate --network undeployed
|
|
52
|
-
midnight airdrop 1000
|
|
53
|
-
midnight dust register
|
|
54
|
+
midnight transfer mn_addr_undeployed1... 100
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
## Supported Networks
|
|
57
58
|
|
|
58
59
|
| Network | Description |
|
|
59
60
|
|---------|-------------|
|
|
60
|
-
| `
|
|
61
|
-
| `preview` | Midnight preview testnet |
|
|
62
|
-
| `undeployed` | Local devnet via Docker (`midnight localnet up`) |
|
|
61
|
+
| `undeployed` | Local network via Docker (`midnight localnet up`) |
|
|
63
62
|
|
|
64
63
|
## JSON Output for Automation
|
|
65
64
|
|
|
@@ -190,4 +189,4 @@ Once connected, your AI agent gets access to 17 tools:
|
|
|
190
189
|
|
|
191
190
|
- Node.js >= 20
|
|
192
191
|
- Docker (for `midnight localnet` commands)
|
|
193
|
-
- A running proof server on `localhost:6300` (for transactions on
|
|
192
|
+
- A running proof server on `localhost:6300` (for transactions on undeployed network)
|