Skip to content

isConnected ​

Check whether the wallet is currently connected.

Usage ​

ts
const connected = await Turing.isConnected();

Parameters ​

This method takes no parameters.

Returns ​

FieldTypeDescription
(return value)booleantrue if the wallet is connected, false otherwise

Example ​

ts
const connected = await Turing.isConnected();

if (!connected) {
  // Prompt user to connect
  const addresses = await Turing.connect();
}

Live Example ​

Live Example

Turing.isConnected()

Detecting Wallet...
Detecting Wallet...
Code Preview