/midnight-wallet:wallet-sdkfrom midnight-wallet
Reference for @midnightntwrk/wallet-sdk-* packages: constructing WalletFacade, HD key derivation from seeds/mnemonics, three-wallet architecture (shielded, unshielded, dust), transaction balancing/signing/proving/submission, and connecting to Midnight infrastructure.
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.
Reference for the @midnightntwrk/wallet-sdk-* packages.
Patterns in this skill were 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. Run midnight-wallet:sdk-regression-check
before trusting any pattern here.
This skill is the package-level reference for the wallet SDK
(@midnightntwrk/wallet-sdk-*), used in programmatic contexts where
the script owns the keys directly. If the user is integrating their
DApp with a browser extension wallet (Lace or other), load
midnight-dapp-dev:dapp-connector instead.
The most common task is constructing a WalletFacade from a seed. The flow is:
Seed (64 hex chars)
→ HDWallet.fromSeed() → selectAccount(0) → selectRoles() → deriveKeysAt(0)
→ ShieldedWallet (Zswap role)
→ UnshieldedWallet (NightExternal role)
→ DustWallet (Dust role)
→ WalletFacade.init({ shielded, unshielded, dust, configuration })
Key packages involved:
| Package | What it provides |
|---|---|
@midnightntwrk/wallet-sdk-hd | HDWallet, Roles, generateRandomSeed |
@midnightntwrk/wallet-sdk-facade | WalletFacade — unified API |
@midnightntwrk/wallet-sdk-shielded | ShieldedWallet factory |
@midnightntwrk/wallet-sdk-unshielded-wallet | UnshieldedWallet factory, createKeystore, PublicKey |
@midnightntwrk/wallet-sdk-dust-wallet | DustWallet factory |
For the full construction code, see examples/basic-wallet-setup.ts.
For configuration details, see references/wallet-construction.md.
| Task | Reference |
|---|---|
| Look up a package name, import path, or key type | references/quick-reference.md |
| Generate keys from a seed or mnemonic | references/key-derivation.md |
| Construct and configure a WalletFacade | references/wallet-construction.md |
| Read wallet state, balances, or sync progress | references/state-and-balances.md |
| Create, balance, sign, prove, or submit a transaction | references/transactions.md |
| Connect to indexer, node, or proof server | references/infrastructure-clients.md |
| Look up the variant/runtime pattern (advanced) | references/variants-and-runtime.md |
| Choose between Promise and Effect APIs | references/effect-and-promise-apis.md |
| Customize wallet services (balancer, prover, etc.) | references/capabilities-deep-dive.md |
| Resolve runtime errors and exceptions | references/errors-and-troubleshooting.md |
| Need | Skill |
|---|---|
| DApp browser wallet integration (DApp Connector API) | midnight-dapp-dev:dapp-connector |
| DApp SDK providers (MidnightProviders, WalletProvider) | midnight-dapp-dev:midnight-sdk |
| Testing wallet SDK code | midnight-cq:wallet-testing |
| CLI wallet construction patterns | compact-cli-dev:core |
| Test wallet patterns + runnable examples | midnight-wallet:managing-test-wallets |
| SDK drift detection / smoke test | midnight-wallet:sdk-regression-check |
examples/basic-wallet-setup.ts (opens in a new tab)examples/dust-registration.ts (opens in a new tab)examples/state-observation.ts (opens in a new tab)examples/transfer-flow.ts (opens in a new tab)references/capabilities-deep-dive.md (opens in a new tab)references/effect-and-promise-apis.md (opens in a new tab)references/errors-and-troubleshooting.md (opens in a new tab)references/infrastructure-clients.md (opens in a new tab)references/key-derivation.md (opens in a new tab)references/quick-reference.md (opens in a new tab)references/state-and-balances.md (opens in a new tab)references/transactions.md (opens in a new tab)references/variants-and-runtime.md (opens in a new tab)references/wallet-construction.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
midnight-network, wallet-sdk, hd-wallet, blockchain, zero-knowledge
npx claudepluginhub midnightntwrk/midnight-expert --plugin midnight-wallet3 skills in this plugin
/managing-test-walletsmidnight-wallet:managing-test-walletsThis skill should be used when the user asks to create a test wallet, fund a wallet, get tNight from a faucet, register DUST, monitor wallet balance, transfer NIGHT or shielded tokens, derive a wallet from a seed or BIP-39 mnemonic, set up wallets for tests, watch an address for incoming funds, generate dust, fund their DApp's test fixtures, or run end-to-end test scenarios that need real wallets on the local devnet or a public testnet./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.Other plugins' skills for the same job