Lifecycle
init(options?)
Registers wallet adapters and silently restores a previous session without opening the
wallet picker. Call once, early in the app lifecycle.
connect()
Opens the wallet picker and establishes a connection, running the authentication flow if
needed. Returns a result indicating whether the connection succeeded.
disconnect()
Ends the session between the dApp and the wallet.
Status
status()
Returns network- and session-related information for the current connection.
isConnected()
Returns whether the user is connected without triggering the login flow. Safe to call
on page load.
getActiveNetwork()
Returns details about the network the wallet is connected to.
Accounts
listAccounts()
Returns all parties the user has access to.
getPrimaryAccount()
Returns the account the user marked as primary.
Signing & transactions
signMessage(message)
Signs an arbitrary string with the primary account.
prepareExecute(commands)
Prepares, requests signature for, and executes a Daml transaction.
ledgerApi(request)
Proxies an authenticated request to the Canton JSON Ledger API.
Provider access
getConnectedProvider()
Returns the raw CIP-103 provider for the active discovery session, or null if not
connected. Use it for direct provider.request(...) calls or provider-level events.
Related
- Events ā Subscribe to status, account, and transaction changes.
- Provider API ā The low-level CIP-103 interface.