# Wallet Connect

Wallet Connect can be used to connect a Cosmos wallet both on the Desktop browser and the Mobile native browser. WC have recently stopped v1 and have asked dapps to move to v2

Leap Mobile Apps have added support Wallet Connect v2 and here are the official docs for integration : <https://docs.walletconnect.com/2.0>\
\
There are two ways you can integrate with Wallet Connect v2 on your dapp -

### WalletConnect Modal

Wallet Connect has a library called web3Modal which helps generate the QR and handle the connection. It takes care of opening the application&#x20;

<https://docs.walletconnect.com/2.0/web/web3modal/react/wagmi/installation>\
\
Cosmos specific example : <https://github.com/WalletConnect/web-examples/tree/main/dapps/react-dapp-v2-cosmos-provider>

#### For MobileWallet Deep link Support

In the options you can provide `mobileWallet` as

```json
[
  id: "leap",
  name: "Leap Wallet",
  links: {
      native: "leapcosmos"
      universal: "leapcosmos",
  },
]
```

### CosmosKit

Cosmos Kit is an open-source library that helps to connect to any cosmos wallet easily. You can check out their docs [here](https://docs.cosmoskit.com/get-started) for installation.\
\
Additionally, you can also check their docs on connecting Leap using walletConnect v2 [here](https://docs.cosmoskit.com/integrating-wallets/adding-new-wallets)\ <br>


---

# 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.leapwallet.io/cosmos/for-dapps-connect-to-leap/wallet-connect.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.
