DApp Connector API
DApp Connector API allows decentralized applications (DApps) to request wallet access, verify authorization, and retrieve service URIs for interacting with the Midnight network.
To download the component, click the appropriate link under Artifacts.
Release 4.0.0LATEST
28 January 2026
Artifacts
Summary
- 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.