Canton dApp Booster
    Preparing search index...
    • Connects and disconnects the wallet, and reports that transition. connect takes no argument: the picker chooses the wallet, so there is no mode to pass. Wagmi: useConnect + useDisconnect, bundled because one provider owns the session.

      Returns UseConnectResult

      with no CantonConnectProvider above it, as every hook here does.

      const { connect, isConnecting } = useConnect()
      <button onClick={() => void connect().catch(() => undefined)} disabled={isConnecting}>
      Connect
      </button>