> For the complete documentation index, see [llms.txt](https://docs.cometh.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cometh.io/core-features/retrieve-a-wallet-address.md).

# Retrieve a wallet address

With Cometh Connect, you can **retrieve the walletAddress** of your user **without interacting with a backend**.&#x20;

To do so, you'll need to let your user sign with one of the passkeys that was used to create a wallet. With the signature, we'll be able to retrieve and send back the wallet address linked to the user.&#x20;

This is the code needed to implement that feature.

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

```typescript
import { retrieveAccountAddressFromPasskeys } from "@cometh/connect-sdk-4337";

const apiKey = process.env.COMETH_API_KEY;
const chain = gnosis;

const walletAddress = await retrieveAccountAddressFromPasskeys({apiKey, chain});

```

{% endtab %}
{% endtabs %}

The user will have to **select the passkey** and **sign a message** in order to retrieve the wallet address.

He will then be able to connect to the wallet.

<figure><img src="/files/s6FQyloUFt0i7wpHGHTI" alt="" width="563"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.cometh.io/core-features/retrieve-a-wallet-address.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.
