Documentation
Wallet Client
disconnect

disconnect

A function of wallet clients to disconnect from the wallet.

Usage

import { walletClient } from './client';
 
const isDisconnected = await walletClient.disconnect();

Returns

DataOrTypedError<
  boolean,
  | 'TonWalletDisconnectError'
  | 'TonConnectError'
>

A boolean indicating that the disconnection was successful or one of the typed errors.