@midnight-ntwrk/wallet-sdk-shielded breaking changes
@midnight-ntwrk/wallet-sdk-shielded 4.0.0 (November 5, 2026) is its newest release with breaking changes, 120 of them. The first: Removed ShieldedWalletCapabilities. Every breaking API change we have recorded in @midnight-ntwrk/wallet-sdk-shielded on npm: 175 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 4.0.1, released November 16, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.2 to 4.0.0: 136 breaking changes in 5 versions.
- From 3.0.0 to 4.0.0: 138 breaking changes in 7 versions.
@midnight-ntwrk/wallet-sdk-shielded 4.0.0 breaking changes
- Removed
ShieldedWalletCapabilities
The ShieldedWalletCapabilities type is removed. Use ShieldedWalletTypes instead. npmjs.com - Removed
ShieldedWalletClass.configuration
ShieldedWalletClass.configuration was removed in @midnight-ntwrk/wallet-sdk-shielded 4.0.0 npmjs.com - Removed
ShieldedWalletClass.startWithSecretKeys
Wallets now start from seeds via startWithSeed or startWithKeys instead of startWithSecretKeys. npmjs.com - Removed
ShieldedWalletServices
The ShieldedWalletServices type is removed. Use ShieldedWalletTypes instead. npmjs.com - Removed
ShieldedWalletState.capabilities
ShieldedWalletState.capabilities was removed in @midnight-ntwrk/wallet-sdk-shielded 4.0.0 npmjs.com - Removed
ShieldedWalletState.mapState
ShieldedWalletState loses mapState; use fromVariant instead. npmjs.com - Removed
ShieldedWalletState.services
ShieldedWalletState.services was removed in @midnight-ntwrk/wallet-sdk-shielded 4.0.0 npmjs.com - Removed
UnboundTransaction
The shielded package re-exports V9UnboundTransaction in place of UnboundTransaction. npmjs.com - Removed
v1:Sync.WalletSyncUpdate.updates
Sync.WalletSyncUpdate.updates was removed in @midnight-ntwrk/wallet-sdk-shielded 4.0.0 npmjs.com - Removed
v1:TransactionHistory.TransactionDetails.timestamp
TransactionHistory.TransactionDetails.timestamp was removed in @midnight-ntwrk/wallet-sdk-shielded 4.0.0 npmjs.com - Behavior changed
CustomShieldedWallet
CustomShieldedWallet composes one ledger-v9 variant from a V2 builder, its instance start takes { v9: keys }, and it cannot cross a fork. github.com - Behavior changed
restore
An unreadable snapshot is now refused with SnapshotRestoreError instead of Wallet.Other, and restore throws that tagged error. github.com - Configuration changed
forks
The forks option is required in the wallet configuration and must be supplied. github.com - Signature changed
balanceTransaction
balanceTransaction no longer takes secret keys and returns a ShieldedBalancingResult; transactions are passed as WalletTransaction handles. github.com - Signature changed
CustomizedShieldedWallet
Was type CustomizedShieldedWallet<TStartAux = ledger.ZswapSecretKeys, TTransaction = ledger.FinalizedTransaction, TSyncUpdate = WalletSyncUpdate, TSerialized = string> = ShieldedWalletAPI<TStartAux, TTransaction, TSerialized> &... npmjs.com - Signature changed
CustomizedShieldedWalletClass
Was interface CustomizedShieldedWalletClass<TStartAux = ledger.ZswapSecretKeys, TTransaction = ledger.FinalizedTransaction, TSyncUpdate = WalletSyncUpdate, TSerialized = string, TConfig extends BaseV1Configuration =... npmjs.com - Signature changed
CustomShieldedWallet
Was function CustomShieldedWallet<TConfig extends BaseV1Configuration = DefaultV1Configuration, TStartAux = ledger.ZswapSecretKeys, TTransaction = ledger.FinalizedTransaction, TSyncUpdate = WalletSyncUpdate, TSerialized =... npmjs.com - Signature changed
DefaultShieldedConfiguration
Was type DefaultShieldedConfiguration = DefaultV1Configuration; now type DefaultShieldedConfiguration = {networkId: NetworkId.NetworkId; indexerClientConnection: IndexerClientConnection; batchUpdates?: BatchUpdatesConfig; txHistoryStorage... npmjs.com - Signature changed
initSwap
initSwap no longer takes secret keys; transactions are passed as WalletTransaction handles. github.com - Signature changed
ShieldedWallet
Was function ShieldedWallet(configuration: DefaultV1Configuration): ShieldedWalletClass type ShieldedWallet = CustomizedShieldedWallet<ledger.ZswapSecretKeys, ledger.FinalizedTransaction, WalletSyncUpdate, string>; now function... npmjs.com - Signature changed
ShieldedWalletAPI
ShieldedWalletAPI and ShieldedWalletState no longer take a transaction type parameter, and a bare ShieldedWalletAPI cannot be started. npmjs.com - Signature changed
ShieldedWalletAPI.balanceTransaction
Was balanceTransaction(secretKeys: ledger.ZswapSecretKeys, tx: ledger.Transaction<ledger.Signaturish, ledger.Proofish, ledger.Bindingish>): Promise<BalancingResult>; now balanceTransaction(tx: AnyTx, ttl?: Date)... npmjs.com - Signature changed
ShieldedWalletAPI.initSwap
Was initSwap(secretKeys: ledger.ZswapSecretKeys, desiredInputs: Record<ledger.RawTokenType, bigint>, desiredOutputs: readonly TokenTransfer[]): Promise<ledger.UnprovenTransaction>; now initSwap(desiredInputs: Record<TokenType, bigint>... npmjs.com - Signature changed
ShieldedWalletAPI.revertTransaction
Was revertTransaction(transaction: ledger.Transaction<ledger.Signaturish, ledger.Proofish, ledger.Bindingish>): Promise<void>; now revertTransaction(transaction: AnyTx): Promise<void>. npmjs.com - Signature changed
ShieldedWalletAPI.start
Was start(secretKeys: TStartAux): Promise<void>; now readonly start: (keys: TKeys) => Promise<void>. npmjs.com - Signature changed
ShieldedWalletAPI.state
Was readonly state: rx.Observable<ShieldedWalletState<TSerialized, TTransaction>>; now readonly state: rx.Observable<ShieldedWalletState<TSerialized>>. npmjs.com - Signature changed
ShieldedWalletAPI.transferTransaction
Was transferTransaction(secretKeys: ledger.ZswapSecretKeys, outputs: readonly TokenTransfer[]): Promise<ledger.UnprovenTransaction>; now transferTransaction(outputs: readonly TokenTransfer[], ttl?: Date): Promise<UnprovenTx>. npmjs.com - Signature changed
ShieldedWalletAPI.waitForSyncedState
Was waitForSyncedState(allowedGap?: bigint): Promise<ShieldedWalletState<TSerialized, TTransaction>>; now waitForSyncedState(allowedGap?: bigint): Promise<ShieldedWalletState<TSerialized>>. npmjs.com - Signature changed
ShieldedWalletClass
Was type ShieldedWalletClass = CustomizedShieldedWalletClass<ledger.ZswapSecretKeys, ledger.FinalizedTransaction, WalletSyncUpdate, string>; now type ShieldedWalletClass = ForkingShieldedWalletClass<V1SyncUpdate, V2SyncUpdate... npmjs.com - Signature changed
ShieldedWalletClass.restore
Was restore(serializedState: TSerialized): CustomizedShieldedWallet<TStartAux, TTransaction, TSyncUpdate, TSerialized>; now restore(serializedState: string): ForkingShieldedWallet<TV1SyncUpdate, TV2SyncUpdate>. npmjs.com - Signature changed
ShieldedWalletClass.startWithSeed
ShieldedWallet(configuration).startWithSeed(seed) is asynchronous and returns a Promise, so callers must await it. npmjs.com - Signature changed
ShieldedWalletState
Was class ShieldedWalletState<TSerialized = string, _TTransaction = ledger.FinalizedTransaction>; now class ShieldedWalletState<TSerialized = string>. npmjs.com - Signature changed
ShieldedWalletState.balances
Was readonly balances: Record<ledger.RawTokenType, bigint>; now readonly balances: Record<TokenType, bigint>. npmjs.com - Signature changed
ShieldedWalletState.constructor
Was constructor(state: ProtocolState.ProtocolState<CoreWallet>, capabilities: ShieldedWalletCapabilities<TSerialized>, services: ShieldedWalletServices); now constructor(protocolVersion: ProtocolVersion.ProtocolVersion, state... npmjs.com - Signature changed
ShieldedWalletState.state
Was readonly state: CoreWallet; now readonly state: VariantState. npmjs.com - Signature changed
transferTransaction
transferTransaction no longer takes secret keys; transactions are passed as WalletTransaction handles. github.com - Signature changed
v1:CoinsAndBalances.AvailableCoin
Was type AvailableCoin = {coin: ledger.QualifiedShieldedCoinInfo; commitment: ledger.CoinCommitment; nullifier: ledger.Nullifier;}; now type AvailableCoin = {coin: QualifiedShieldedCoinInfo; commitment: CoinCommitment; nullifier... npmjs.com - Signature changed
v1:CoinsAndBalances.AvailableCoin.coin
Was coin: ledger.QualifiedShieldedCoinInfo; now coin: QualifiedShieldedCoinInfo. npmjs.com - Signature changed
v1:CoinsAndBalances.AvailableCoin.commitment
Was commitment: ledger.CoinCommitment; now commitment: CoinCommitment. npmjs.com - Signature changed
v1:CoinsAndBalances.AvailableCoin.nullifier
Was nullifier: ledger.Nullifier; now nullifier: Nullifier. npmjs.com - Signature changed
v1:CoinsAndBalances.Balances
Was type Balances = Record<ledger.RawTokenType, bigint>; now type Balances = Record<TokenType, bigint>. npmjs.com - Signature changed
v1:CoinsAndBalances.CoinsAndBalancesCapability
Was type CoinsAndBalancesCapability<TState> = {getAvailableBalances(state: TState): Balances; getPendingBalances(state: TState): Balances; getTotalBalances(state: TState): Balances; getAvailableCoins(state: TState): readonly... npmjs.com - Signature changed
v1:CoinsAndBalances.makeDefaultCoinsAndBalancesCapability
Was const makeDefaultCoinsAndBalancesCapability: () => CoinsAndBalancesCapability<CoreWallet>; now const makeDefaultCoinsAndBalancesCapability: () => Required<CoinsAndBalancesCapability<CoreWallet>>. npmjs.com - Signature changed
v1:CoinsAndBalances.PendingCoin
Was type PendingCoin = {coin: ledger.ShieldedCoinInfo; ttl: Date | undefined; commitment: ledger.CoinCommitment; nullifier: ledger.Nullifier;}; now type PendingCoin = {coin: ShieldedCoinInfo; ttl: Date | undefined; commitment... npmjs.com - Signature changed
v1:CoinsAndBalances.PendingCoin.coin
Was coin: ledger.ShieldedCoinInfo; now coin: ShieldedCoinInfo. npmjs.com - Signature changed
v1:CoinsAndBalances.PendingCoin.commitment
Was commitment: ledger.CoinCommitment; now commitment: CoinCommitment. npmjs.com - Signature changed
v1:CoinsAndBalances.PendingCoin.nullifier
Was nullifier: ledger.Nullifier; now nullifier: Nullifier. npmjs.com - Signature changed
v1:CoreWallet
Was const CoreWallet: {init(localState: ledger.ZswapLocalState, secretKeys: ledger.ZswapSecretKeys, networkId: string): CoreWallet; empty(publicKeys: PublicKeys, networkId: string): CoreWallet; restore(localState: ledger.ZswapLocalState... npmjs.com - Signature changed
v1:DefaultRunningV1.balanceTransaction
Was balanceTransaction(secretKeys: ledger.ZswapSecretKeys, tx: ledger.Transaction<ledger.Signaturish, ledger.Proofish, ledger.Bindingish>): Effect.Effect<BalancingResult, WalletError>; now balanceTransaction(secretKeys... npmjs.com - Signature changed
v1:DefaultRunningV1.initSwap
Was initSwap(secretKeys: ledger.ZswapSecretKeys, desiredInputs: Record<ledger.RawTokenType, bigint>, desiredOutputs: ReadonlyArray<TokenTransfer>): Effect.Effect<ledger.UnprovenTransaction, WalletError>; now initSwap(secretKeys... npmjs.com
And 70 more in this version. Sign up to see every change
@midnight-ntwrk/wallet-sdk-shielded 4.0.0-rc.1 breaking changes
- Behavior changed
InMemoryTransactionHistoryStorage.restore
restore throws TransactionHistoryRestoreError instead of returning an empty store. Use tryRestore to receive the error as a Left. github.com - Signature changed
upgradeToCurrentFormat
upgradeToCurrentFormat now returns an Either instead of the bare value, so callers must unwrap it. github.com - Signature changed
Variant
Variant implementations must provide protocolVersionOf(state), which the runtime now reads when starting from existing state. github.com
@midnight-ntwrk/wallet-sdk-shielded 4.0.0-beta.4 breaking changes
- Behavior changed
A sync batch whose ids are not strictly ascending is rejected whole with OutOfOrderSyncUpdateError, and the cursor does not move. github.com
@midnight-ntwrk/wallet-sdk-shielded 4.0.0-beta.3 breaking changes
- Removed
startWithSecretKey
Use startWithSeed or startWithKeys instead of startWithSecretKey. github.com - Removed
v1:Sync.WalletSyncUpdate.secretKeys
Transaction-building methods no longer accept a secretKeys parameter; the wallet holds key material from start. npmjs.com - Renamed
BalancingResult
Shielded BalancingResult is renamed ShieldedBalancingResult. github.com - Renamed
fromProvingProvider
fromProvingProvider is renamed fromV9ProvingProvider. Update imports to the new name. github.com - Renamed
makeServerProvingService
makeServerProvingService is renamed makeV9ServerProvingService. github.com - Behavior changed
stop
A stopped wallet drops its key material, so transacting after stop() fails with MissingStartAuxError. Restart the wallet before transacting. github.com - Configuration changed
forks
ShieldedWallet, UnshieldedWallet and DustWallet require forks. Supply a fork schedule such as DefaultForkSchedule. github.com - Signature changed
DefaultDustConfiguration.dustParameters
dustParameters now takes a plain DustGenerationRates object and defaults to the ledger's initial parameters. github.com - Signature changed
startWithPublicKey
startWithPublicKey returns a Promise, so callers must await it. github.com - Signature changed
WalletFacade.start
start takes WalletSeeds or FacadeKeysByEpoch, and its third argument is now an object with manualSync. github.com
@midnight-ntwrk/wallet-sdk-shielded 4.0.0-beta.0 breaking changes
- Configuration changed
Consumers must resolve @midnightntwrk/ledger-v9 instead of @midnight-ntwrk/ledger-v8. github.com - Signature changed
createKeystore
createKeystore now takes an UnshieldedSecretKey object with kind and secret instead of a Uint8Array seed. Pass a tagged key object. github.com
@midnight-ntwrk/wallet-sdk-shielded 3.0.2 breaking changes
- Signature changed
v1:Sync.IndexerClientConnection
Was type IndexerClientConnection = {indexerHttpUrl: string; indexerWsUrl?: string; keepAlive?: number;}; now type IndexerClientConnection = {indexerHttpUrl: string; indexerWsUrl?: string; keepAlive?: number; bufferSize?: number... npmjs.com
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
@midnight-ntwrk/wallet-sdk-shielded 3.0.1 breaking changes
- Configuration changed
The package now bumps its ledger-v8 dependency from ^8.0.3 to ^8.1.0. Consumers must make sure their install resolves @midnight-ntwrk/ledger-v8 to 8.1.0 or later. github.com
@midnight-ntwrk/wallet-sdk-shielded 3.0.0 breaking changes
- Removed
ShieldedWalletCapabilities.transactionHistory
ShieldedWalletCapabilities.transactionHistory was removed in @midnight-ntwrk/wallet-sdk-shielded 3.0.0 npmjs.com - Removed
ShieldedWalletState.transactionHistory
ShieldedWalletState.transactionHistory was removed in @midnight-ntwrk/wallet-sdk-shielded 3.0.0 npmjs.com
And 35 more in this version.
Related packages
- @midnight-ntwrk/wallet-sdk-facade
- @midnight-ntwrk/wallet-sdk-dust-wallet
- @midnight-ntwrk/wallet-sdk-hd
- @midnight-ntwrk/wallet-sdk-unshielded-wallet
- @midnight-ntwrk/wallet-sdk-address-format
- @midnight-ntwrk/compact-runtime
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.