midnight-wallet-cli 0.2.2 → 0.2.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 +24 -13
- package/dist/mcp-server.js +95 -95
- package/dist/wallet.js +116 -116
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,32 +44,43 @@ This installs two commands: `midnight` (or `mn` for short) and `midnight-wallet-
|
|
|
44
44
|
|
|
45
45
|
## Quick Start
|
|
46
46
|
|
|
47
|
-
###
|
|
47
|
+
### Local development (undeployed)
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
#
|
|
51
|
-
midnight
|
|
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
|
|
52
60
|
|
|
53
|
-
# Check balance
|
|
61
|
+
# 4. Check balance and transfer
|
|
54
62
|
midnight balance
|
|
63
|
+
midnight transfer mn_addr_undeployed1... 100
|
|
55
64
|
```
|
|
56
65
|
|
|
57
|
-
###
|
|
66
|
+
### Preprod / Preview (testnet)
|
|
58
67
|
|
|
59
68
|
```bash
|
|
60
|
-
#
|
|
61
|
-
midnight
|
|
69
|
+
# 1. Create a wallet and set the network
|
|
70
|
+
midnight wallet generate alice
|
|
71
|
+
midnight config set network preprod # or: preview
|
|
62
72
|
|
|
63
|
-
#
|
|
64
|
-
midnight
|
|
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
|
|
65
77
|
|
|
66
|
-
#
|
|
67
|
-
midnight airdrop 1000
|
|
78
|
+
# 3. Register dust (needed for fees)
|
|
68
79
|
midnight dust register
|
|
69
80
|
|
|
70
|
-
# Check balance and transfer
|
|
81
|
+
# 4. Check balance and transfer
|
|
71
82
|
midnight balance
|
|
72
|
-
midnight transfer
|
|
83
|
+
midnight transfer mn_addr_preprod1... 100
|
|
73
84
|
```
|
|
74
85
|
|
|
75
86
|
## Supported Networks
|