# Connecting

Establishing a connection is the first step in interaction with any wallet. Without it, apps won't be able to get information about users' accounts, request transactions or sign messages.

In order to connect to Fuelet Wallet, you first need to check that the wallet is installed and then select the appropriate connector. See [integration guide](broken://pages/QVyuPEMN9fsbypCjMD8e).<br>

Then, the only thing you need to do is to call the `connect` method:

{% tabs %}
{% tab title="TypeScript" %}

```javascript
const isConnected = await fuel.connect();
console.log("Connection response", isConnected);
```

{% endtab %}
{% endtabs %}

This method results in opening the wallet extension and prompts the user to connect to the website.&#x20;

<figure><img src="/files/7AoxE3AYCeF4M4EyJLES" alt="" width="182"><figcaption></figcaption></figure>

It returns `Promise<boolean>` : it will be `true` if the user accepts the connection and `false` otherwise.

## Checking the connection status

To check if the user is already connected to the website, you can call the `isConnected()` method which also returns a `Promise<boolean>`:

{% tabs %}
{% tab title="TypeScript" %}

```javascript
const isConnected = await fuel.isConnected();
console.log("Is connected response", isConnected);
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fuelet.app/wallet-api/connecting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
