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.
2 April 2025
Midnight DApp Connector API 2.0.0 Release Notes
Learn about the latest updates and improvements to the Midnight DApp Connector, including new features, bug fixes, and breaking changes designed to enhance functionality and stability.
Key Changes & Highlights
- Bech32m Address format: This version supports both,
bech32m
andhex
(legacy) formats. The default format isBech32m
.
Changelog
Breaking Changes
Address format change
- Impact: The default address format is
bech32m
- Action Required: When implementing the dapp connector API, the respective properties coming from the wallet should be matched against the API.
New Features
Bech32m address format
- Description: The address format allows users to distinguish addresses, public keys and private keys based on the network they’re generated for (undeployed, devnet, testnet, mainnet) and the type of address this is, i.e a shielded address or unshielded address.
- Usage/Configuration: It’s enabled by default
Upgrade/Installation/Migration Instructions
Prerequisites
None
Step-by-Step Instructions
Update your dapp connector api version to @midnight-ntwrk/dapp-connector-api@2.0.0
.
Post-Upgrade Verification
The version above is installed.
Compatibility
- Operating Systems: None.
- Third-Party Tools: Node.js >=18
- Midnight Ecosystem Compatibility: Midnight.js 1.0.0 and tests need to be updated to support the new APIs. In addition, anyone using the wallet will have to update and accommodate the breaking changes above.