midnight-wallet-cli 0.5.5 → 0.5.7

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
@@ -80,6 +80,11 @@ midnight transfer mn_addr_undeployed1... 100
80
80
  midnight wallet generate alice
81
81
  midnight config set network preprod # or: preview
82
82
 
83
+ # Preprod only: its indexer and node are served by Blockfrost, which needs
84
+ # your own project id. Create a "Midnight Preprod" project at https://blockfrost.io
85
+ # and set its id once (it starts with nightpreprod):
86
+ midnight config set blockfrost-project-id <project id>
87
+
83
88
  # 2. Get test tokens from the faucet
84
89
  # preprod: https://faucet.preprod.midnight.network/
85
90
  # preview: https://faucet.preview.midnight.network/
@@ -98,11 +103,25 @@ midnight transfer mn_addr_preprod1... 100
98
103
  | Network | Description |
99
104
  |---------|-------------|
100
105
  | `undeployed` | Local network via Docker (`midnight localnet up`) |
101
- | `preprod` | Midnight pre-production testnet |
106
+ | `preprod` | Midnight pre-production testnet (indexer and node served by Blockfrost: needs a project id) |
102
107
  | `preview` | Midnight preview testnet |
103
108
 
104
109
  Wallets are network-agnostic — one seed derives addresses for all three networks. Use `--network <name>` on any command, or persist it with `midnight config set network preview`.
105
110
 
111
+ ### Preprod and Blockfrost
112
+
113
+ Midnight shut its own preprod indexer down on 2026-10-09; [Blockfrost serves it now](https://docs.midnight.network/guides/networks-and-environments), along with the node RPC, and every request needs your own project id. Create a project for Midnight Preprod at [blockfrost.io](https://blockfrost.io) and give mn its id:
114
+
115
+ ```bash
116
+ midnight config set blockfrost-project-id <project id> # or: export BLOCKFROST_PROJECT_ID=<project id> (MN_BLOCKFROST_PROJECT_ID wins if both are set)
117
+ ```
118
+
119
+ - Without one, a command that reaches preprod stops with `BLOCKFROST_PROJECT_ID_REQUIRED` and these instructions. A refused id is `BLOCKFROST_PROJECT_ID_REJECTED`. Requests count against your Blockfrost plan.
120
+ - The project id is a secret. mn keeps it in `~/.midnight/config.json` (mode 0600), shows it masked in `config get`, and hides it in everything it prints, errors and `--verbose` logs included.
121
+ - `mn serve` gives a connected dApp the wallet's indexer and node URLs (the DApp connector's `getConfiguration`), and on preprod those carry your project id: connect only dApps you trust with it.
122
+ - An old `indexer-ws` setting that points at `indexer.preprod.midnight.network` fails with `ENDPOINT_SHUT_DOWN`: remove it with `midnight config unset indexer-ws`.
123
+ - Preview and the local network need no project id.
124
+
106
125
  ## Native dust acceleration
107
126
 
108
127
  The first dust sync for a wallet on a hosted network (`preprod`/`preview`) replays the chain's full dust event history — the slow part of a cold start. The CLI bundles a native (Rust) accelerator that does this ~5× faster than the WASM fallback: a ~1.45M-event preprod prime drops from ~22 min to ~4.5 min.
@@ -310,7 +329,7 @@ Found a bug or have a feature request? [Open an issue](https://github.com/nel349
310
329
 
311
330
  ## Requirements
312
331
 
313
- - Node.js >= 20
332
+ - Node.js >= 22
314
333
  - Docker (for `midnight localnet` commands)
315
334
  - A running proof server on `localhost:6300` (for transactions — required on all networks)
316
335