Install
@canton-network/dapp-sdk is a peer dependency — install it alongside the adapter.
Register the adapter
Create aWalleyAdapter and register it with the dApp SDK’s DiscoveryRegistry. This makes Walley discoverable as a wallet provider.
host:
The adapter defaults to
https://walley.cc. It reports itself as inactive during server-side rendering and in Node, so it is safe to construct in universal/SSR codebases — it only becomes usable in a real browser environment.Connect a wallet
Get the provider from the adapter and callconnect. This opens a Walley popup where the user approves the connection. Always trigger it from a user gesture so the popup is not blocked.
localStorage and restored automatically on the next page load, so users stay connected across reloads until you call disconnect.
Read the connected account
Once connected, read the user’s wallet and network without opening a popup:Submit a transaction
UseprepareExecuteAndWait to have the user review and sign a set of Daml commands, then wait for the transaction to commit:
prepareExecute and prepareExecuteAndWait, and how network fees are handled.
Disconnect
When the user signs out, clear the session:Next steps
Provider API
The full list of methods and their request/result shapes.
Transactions & Fees
Command submission patterns and the deferred fee model.