isConnected
Check whether the wallet is currently connected.
Usage
ts
const connected = await Turing.isConnected();Parameters
This method takes no parameters.
Returns
| Field | Type | Description |
|---|---|---|
| (return value) | boolean | true 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);