DApp Connector API v4.0.0 release notes
- Version: v4.0.0
- Date: 28 January 2026
- Environment: Preview, PreProd
High-level summary
This release represents a complete redesign of the DApp Connector API. It introduces a type-based architecture, network-aware connections, granular balance/address methods, proving delegation, and CAIP-372 compatible wallet discovery. Breaking changes affect all developers using v3.0.0.
Audience
This release note is critical for developers who:
- Use
@midnight-ntwrk/dapp-connector-apiin their DApps. - Integrate wallet functionality into Midnight applications.
- Maintain wallet implementations compatible with the DApp Connector API.
What changed (Summary of updates)
- Complete API redesign from interface-based to type-based architecture.
- Replaced
enable()/isEnabled()connection model with network-awareconnect(networkId). - Removed dependencies on
@midnight-ntwrk/wallet-apiand@midnight-ntwrk/zswap. - Added proving delegation via
getProvingProvider()method. - Added atomic swap support via
makeIntent()method. - Added granular balance and address methods replacing single
state()method. - Added new error codes:
PermissionRejectedandDisconnected. - Changed
APIErrorfrom class to type for cross-boundary compatibility. - Added comprehensive specification documentation.
New features
Below is a detailed breakdown of the new features added in this release.