/midnight-wallet:managing-test-walletsfrom midnight-wallet
Creates, funds, and manages Midnight test wallets on devnet or public testnets. Covers wallet derivation, faucet funding, DUST registration, balance monitoring, and token transfers.
Ships in midnight-wallet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
SDK-driven patterns for creating, funding, and managing Midnight test
wallets. Network-aware (undeployed / preprod / preview).
Every pattern here was verified against the package versions pinned in
midnight-wallet:sdk-regression-check/versions.lock.json. The Midnight
Network ecosystem moves quickly, and there may be breaking changes
between SDK versions.
Before using any pattern from this skill, run
midnight-wallet:sdk-regression-check (drift check). If a major
version has shifted, run the smoke test before trusting the patterns.
Browser wallets (Lace and other extensions) are out of scope for this
skill. This skill teaches programmatic wallet patterns where the script
owns the keys directly. If the user is integrating their DApp with a
browser extension wallet, load midnight-dapp-dev:dapp-connector
instead. The two skills are complementary: a DApp typically uses the
extension wallet in production and uses the patterns in this skill for
development and test wallets.
| Scenario | Pattern |
|---|---|
| Wiring wallet setup into an example DApp's startup or tests | Lift the relevant examples/*.ts block, adapt to the host project's config and pin SDK versions in its package.json |
| One-off: user asks for a funded test wallet, balance check, transfer, etc. | Write a throwaway script in /tmp/ or the project's scripts/, run with npx tsx, report results |
A WalletFacade owns three sub-wallets, each with its own address and
balance. Faucets and the genesis-seed airdrop fund the UNSHIELDED
address only. See references/addresses-and-tokens.md.
| User wants… | Reference | Example |
|---|---|---|
| Generate a brand-new wallet | wallet-creation.md | create-wallet.ts |
| Restore from BIP-39 mnemonic / hex seed | wallet-creation.md | create-wallet.ts |
| Fund on local devnet | funding.md | fund-wallet-undeployed.ts |
| Fund on preprod or preview | funding.md | fund-wallet-public-faucet.ts |
| Register DUST | dust-registration.md | register-dust.ts |
| Watch balance changes | balance-monitoring.md | monitor-wallet.ts |
| Transfer NIGHT | transfers.md | transfer-night.ts |
| Transfer shielded tokens | transfers.md | transfer-shielded.ts |
| End-to-end (create + fund + dust) | all of the above | full-test-wallet-setup.ts |
| Reference | Topic |
|---|---|
references/addresses-and-tokens.md | Three-address model |
references/wallet-creation.md | Seed sources, HD derivation, construction |
references/funding.md | Per-network funding strategy |
references/dust-registration.md | DUST mechanics + registration |
references/balance-monitoring.md | State subscription patterns |
references/transfers.md | Three transfer kinds |
references/network-config.md | DefaultConfiguration per network |
references/troubleshooting.md | Common symptoms |
| Example | Demonstrates |
|---|---|
examples/create-wallet.ts | Wallet construction (random, mnemonic, hex seed) |
examples/fund-wallet-undeployed.ts | Genesis-seed airdrop on local devnet |
examples/fund-wallet-public-faucet.ts | Print-and-wait pattern for testnets |
examples/register-dust.ts | DUST registration |
examples/monitor-wallet.ts | Live balance ticker |
examples/transfer-night.ts | Unshielded NIGHT transfer |
examples/transfer-shielded.ts | Shielded transfer |
examples/full-test-wallet-setup.ts | End-to-end |
| Need | Skill |
|---|---|
| Wallet SDK package reference | midnight-wallet:wallet-sdk |
| SDK drift detection / smoke test | midnight-wallet:sdk-regression-check |
| Local devnet management | midnight-tooling:devnet |
| Genesis seed for local devnet | midnight-tooling:devnet#genesis-seed |
| Browser wallet (Lace) integration | midnight-dapp-dev:dapp-connector |
| DApp SDK provider wiring | midnight-dapp-dev:midnight-sdk |
| Testing wallet SDK code | midnight-cq:wallet-testing |
examples/create-wallet.ts (opens in a new tab)examples/full-test-wallet-setup.ts (opens in a new tab)examples/fund-wallet-public-faucet.ts (opens in a new tab)examples/fund-wallet-undeployed.ts (opens in a new tab)examples/monitor-wallet.ts (opens in a new tab)examples/register-dust.ts (opens in a new tab)examples/transfer-night.ts (opens in a new tab)examples/transfer-shielded.ts (opens in a new tab)references/addresses-and-tokens.md (opens in a new tab)references/balance-monitoring.md (opens in a new tab)references/dust-registration.md (opens in a new tab)references/funding.md (opens in a new tab)references/network-config.md (opens in a new tab)references/transfers.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/wallet-creation.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub midnightntwrk/midnight-expert --plugin midnight-wallet3 skills in this plugin
/sdk-regression-checkmidnight-wallet:sdk-regression-checkThis skill should be used when the user wants to verify the wallet SDK is current, check for SDK drift, has the wallet SDK updated, run an SDK regression test, validate that wallet patterns are still valid, do a wallet SDK version check, smoke test the wallet SDK, validate a wallet SDK installation, debug wallet SDK pattern failures, troubleshoot wallet SDK errors, diagnose wallet SDK failures, when wallet SDK is not working, why wallet SDK code is failing, wallet SDK runtime errors, wallet construction failing, WalletFacade.init throwing, sync stuck or never completes, transaction recipe rejected, signature mismatch in wallet SDK, type errors after upgrading wallet SDK, or when code that worked yesterday no longer works./wallet-sdkmidnight-wallet:wallet-sdkThis skill should be used when the user asks about the Midnight Wallet SDK packages (@midnightntwrk/wallet-sdk-*), how to construct a wallet with WalletFacade, HD key derivation from seeds or mnemonics, the three-wallet architecture (shielded, unshielded, dust), observing wallet state and sync progress, transaction balancing and signing, proving and submission services, connecting to infrastructure (indexer client, node client, prover client), or Bech32m address formatting. Also covers ProtocolVersion, SyncProgress, FacadeState, and the wallet runtimeOther plugins' skills for the same job