Documentation
Wallet Client
reconnect

reconnect

A function of WalletClient to reconnect to the wallet if the connection was previously established.

This method is not available for WalletClientUI. Instead, pass reconnect: true option to createWalletClientUI function.

Usage

import { walletClient } from './client';
 
const walletConnection = await walletClient.reconnect();

Returns

DataOrTypedError<
  Wallet,
  | 'ReconnectFunctionUnavailableError'
  | 'TonWalletConnectionError'
  | 'TonConnectError'
  | 'TonConnectUIError'
>;

A Wallet object with connection information or one of the typed errors.