multinetwork
Installation
SKILL.md
Multi-Network Midnight Skill
This skill covers building a Midnight DApp that works across all four network targets from a single codebase. The key insight: networks differ in three ways — endpoints, proof server (local Docker vs ProofStation), and DUST flow (manual registration vs sponsored). Everything else is identical.
Primary references:
github.com/midnightntwrk/midnight-local-dev— official local Docker stack + funding CLIgithub.com/midnightntwrk/example-counter— official reference DApp (standalone + preprod modes)
1) The Four Networks at a Glance
| Network | networkId |
Use for | Proof server | DUST flow |
|---|---|---|---|---|
undeployed |
'undeployed' |
Local dev, CI | Local Docker :6300 |
Manual registration (genesis wallet seeds funded) |
preview |
'preview' |
Active development on testnet | 1AM ProofStation (api-preview.1am.xyz) |
Sponsored — user pays 0 fees |
preprod |
'preprod' |
Pre-release / integration testing | Local Docker :6300 OR ProofStation |
Manual registration (faucet → NIGHT → DUST) |
mainnet |
'mainnet' |
Production | 1AM ProofStation (api.1am.xyz) |
Sponsored — user pays 0 fees |