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()

Unknown
Use the wallet control in the top navigation before running this example.

This method does not require parameters.

Code Preview
const connected = await Turing.isConnected();
console.log(connected);
Make sure the browser extension is enabled, or open this page inside Turing Wallet on mobile.